diff --git a/actix-identity/CHANGES.md b/actix-identity/CHANGES.md index cff585b4b..984810b36 100644 --- a/actix-identity/CHANGES.md +++ b/actix-identity/CHANGES.md @@ -1,6 +1,9 @@ # Changes ## Unreleased - 2022-xx-xx +- Remove unnecessary dependencies. [#259] + +[#259]: https://github.com/actix/actix-extras/pull/259 ## 0.5.0 - 2022-07-11 diff --git a/actix-identity/Cargo.toml b/actix-identity/Cargo.toml index 58224d086..2bba40808 100644 --- a/actix-identity/Cargo.toml +++ b/actix-identity/Cargo.toml @@ -23,16 +23,15 @@ actix-utils = "3" actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] } anyhow = "1" -env_logger = "0.9" futures-core = "0.3.7" serde = { version = "1", features = ["derive"] } -serde_json = "1" -time = "0.3" tracing = { version = "0.1.30", default-features = false, features = ["log"] } [dev-dependencies] actix-http = "3" actix-web = { version = "4", default_features = false, features = ["macros", "cookies", "secure-cookies"] } actix-session = { version = "0.7", features = ["redis-rs-session", "cookie-session"] } -uuid = { version = "1", features = ["v4"] } + +env_logger = "0.9" reqwest = { version = "0.11", default_features = false, features = ["cookies", "json"] } +uuid = { version = "1", features = ["v4"] } diff --git a/actix-identity/src/middleware.rs b/actix-identity/src/middleware.rs index f65f48faa..d281f481c 100644 --- a/actix-identity/src/middleware.rs +++ b/actix-identity/src/middleware.rs @@ -4,12 +4,11 @@ use actix_session::SessionExt; use actix_utils::future::{ready, Ready}; use actix_web::{ body::MessageBody, - cookie::time::format_description::well_known::Rfc3339, + cookie::time::{format_description::well_known::Rfc3339, OffsetDateTime}, dev::{Service, ServiceRequest, ServiceResponse, Transform}, Error, HttpMessage as _, Result, }; use futures_core::future::LocalBoxFuture; -use time::OffsetDateTime; use crate::{ config::{Configuration, IdentityMiddlewareBuilder},