diff --git a/Cargo.lock b/Cargo.lock index bc20c39..5ab4e6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -60,7 +60,7 @@ dependencies = [ [[package]] name = "actix-jwt-auth-middleware" -version = "0.4.0" +version = "0.5.0" dependencies = [ "actix-jwt-auth-middleware-derive", "actix-state-guards", diff --git a/Cargo.toml b/Cargo.toml index f8a7e05..5f8b764 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["derive", "./."] [package] name = "actix-jwt-auth-middleware" -version = "0.4.0" +version = "0.5.0" edition = "2021" authors = ["Michael van Straten"] repository = "https://github.com/michaelvanstraten/actix-jwt-auth-middleware" @@ -25,9 +25,6 @@ readme = "readme.md" description = "This crate implements a JSON Webtoken (JWT) middleware for the actix-web framework." license = "MIT" -[features] -use_jwt_on_resource = [] - [dependencies] serde = "1.0.145" derive_builder = "0.11.2" diff --git a/src/lib.rs b/src/lib.rs index 8eac8a2..22fea4f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,12 +104,6 @@ async fn hello(user: User) -> impl Responder { For more examples please referee to the `examples` directory. */ -#![cfg_attr( - feature = "use_jwt_on_resource", - feature(return_position_impl_trait_in_trait), - allow(incomplete_features) -)] - #[doc(inline)] pub use actix_jwt_auth_middleware_derive::FromRequest; pub use authority::*; diff --git a/src/use_jwt/mod.rs b/src/use_jwt/mod.rs index badeea9..4cfa62b 100644 --- a/src/use_jwt/mod.rs +++ b/src/use_jwt/mod.rs @@ -1,7 +1,5 @@ mod app_and_scope; -#[cfg(feature = "use_jwt_on_resource")] mod resource; pub use app_and_scope::*; -#[cfg(feature = "use_jwt_on_resource")] pub use resource::*;