From 3605650a90c0710aeee93930ba2622bf00a88b70 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 23 Mar 2022 08:22:38 -0700 Subject: Add support for token extensions --- Cargo.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1ee70e7..d344fbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,20 +1,24 @@ [package] name = "actix-middleware-rfc7662" -version = "0.1.0" +version = "0.2.0" edition = "2021" description = "Actix-web extractor which validates OAuth2 tokens through an RFC 7662 token introspection endpoint." license = "MIT" repository = "https://github.com/jesterpm/actix-middleware-rfc7662" authors = ["Jesse Morgan "] -[[bin]] +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[[example]] name = "demo" -path = "src/demo/main.rs" +required-features = ["indieauth"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] +indieauth = ["serde"] [dependencies] log = "0.4" actix-web = "4" oauth2 = "4" -futures-util = "0.3" \ No newline at end of file +futures-util = "0.3" +serde = {version = "1", features = ["derive"], optional = true } \ No newline at end of file -- cgit v1.2.3