From a3ebc8ca6626167f875e71a12e35d3883de3986e Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 15 Mar 2020 05:44:29 +0900 Subject: [PATCH 1/2] Minimize `futures` dependency --- actix-identity/CHANGES.md | 1 + actix-identity/Cargo.toml | 2 +- actix-identity/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-identity/CHANGES.md b/actix-identity/CHANGES.md index 5dc57de23..94d118917 100644 --- a/actix-identity/CHANGES.md +++ b/actix-identity/CHANGES.md @@ -4,6 +4,7 @@ * Update the `time` dependency to 0.2.7 * Update the `actix-web` dependency to 3.0.0-alpha.1 +* Minimize `futures` dependency ## [0.2.1] - 2020-01-10 diff --git a/actix-identity/Cargo.toml b/actix-identity/Cargo.toml index e87c4cb0d..6337a981e 100644 --- a/actix-identity/Cargo.toml +++ b/actix-identity/Cargo.toml @@ -18,7 +18,7 @@ path = "src/lib.rs" [dependencies] actix-web = { version = "3.0.0-alpha.1", default-features = false, features = ["secure-cookies"] } actix-service = "1.0.2" -futures = "0.3.1" +futures-util = { version = "0.3.4", default-features = false } serde = "1.0" serde_json = "1.0" time = { version = "0.2.7", default-features = false, features = ["std"] } diff --git a/actix-identity/src/lib.rs b/actix-identity/src/lib.rs index b584b1af7..e39598aff 100644 --- a/actix-identity/src/lib.rs +++ b/actix-identity/src/lib.rs @@ -53,7 +53,7 @@ use std::task::{Context, Poll}; use std::time::SystemTime; use actix_service::{Service, Transform}; -use futures::future::{ok, FutureExt, LocalBoxFuture, Ready}; +use futures_util::future::{ok, FutureExt, LocalBoxFuture, Ready}; use serde::{Deserialize, Serialize}; use time::Duration; @@ -1085,7 +1085,7 @@ mod tests { #[actix_rt::test] async fn test_borrowed_mut_error() { - use futures::future::{lazy, ok, Ready}; + use futures_util::future::{lazy, ok, Ready}; struct Ident; impl IdentityPolicy for Ident { From dd7ee27388fabd40086742059dce444a08225fdd Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 15 Mar 2020 06:15:22 +0900 Subject: [PATCH 2/2] Bump up to 0.3.0-alpha.1 --- actix-identity/CHANGES.md | 2 +- actix-identity/Cargo.toml | 2 +- actix-identity/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-identity/CHANGES.md b/actix-identity/CHANGES.md index 94d118917..a575c2840 100644 --- a/actix-identity/CHANGES.md +++ b/actix-identity/CHANGES.md @@ -1,6 +1,6 @@ # Changes -## [0.3.0-alpha.1] - 2020-03-12 +## [0.3.0-alpha.1] - 2020-03-14 * Update the `time` dependency to 0.2.7 * Update the `actix-web` dependency to 3.0.0-alpha.1 diff --git a/actix-identity/Cargo.toml b/actix-identity/Cargo.toml index 6337a981e..c0e973f6e 100644 --- a/actix-identity/Cargo.toml +++ b/actix-identity/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-identity" -version = "0.2.1" +version = "0.3.0-alpha.1" authors = ["Nikolay Kim "] description = "Identity service for actix-web framework." readme = "README.md" diff --git a/actix-identity/README.md b/actix-identity/README.md index fa9aaf025..e88b0a5ae 100644 --- a/actix-identity/README.md +++ b/actix-identity/README.md @@ -16,4 +16,4 @@ * [API Documentation](https://docs.rs/actix-identity/) * [Chat on gitter](https://gitter.im/actix/actix) * Cargo package: [actix-session](https://crates.io/crates/actix-identity) -* Minimum supported Rust version: 1.34 or later +* Minimum supported Rust version: 1.39 or later