From 9a8275b45562aebea59288c36f6fc529785aeba9 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 12 Mar 2020 05:43:48 +0900 Subject: [PATCH] Minimize `futures-*` dependencies --- actix-cors/CHANGES.md | 4 ++++ actix-cors/Cargo.toml | 2 +- actix-cors/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/actix-cors/CHANGES.md b/actix-cors/CHANGES.md index 8022ea4e8..17033b2ce 100644 --- a/actix-cors/CHANGES.md +++ b/actix-cors/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## [0.3.0-alpha.1] - 2020-03-11 + +* Minimize `futures-*` dependencies + ## [0.2.0] - 2019-12-20 * Release diff --git a/actix-cors/Cargo.toml b/actix-cors/Cargo.toml index c92422ddf..efbeea949 100644 --- a/actix-cors/Cargo.toml +++ b/actix-cors/Cargo.toml @@ -19,7 +19,7 @@ path = "src/lib.rs" actix-web = "2.0.0" actix-service = "1.0.1" derive_more = "0.99.2" -futures = "0.3.1" +futures-util = { version = "0.3.4", default-features = false } [dev-dependencies] actix-rt = "1.0.0" diff --git a/actix-cors/src/lib.rs b/actix-cors/src/lib.rs index 579a067b3..6283ce584 100644 --- a/actix-cors/src/lib.rs +++ b/actix-cors/src/lib.rs @@ -52,7 +52,7 @@ use actix_web::http::header::{self, HeaderName, HeaderValue}; use actix_web::http::{self, Error as HttpError, Method, StatusCode, Uri}; use actix_web::HttpResponse; use derive_more::Display; -use futures::future::{ok, Either, FutureExt, LocalBoxFuture, Ready}; +use futures_util::future::{ok, Either, FutureExt, LocalBoxFuture, Ready}; /// A set of errors that can occur during processing CORS #[derive(Debug, Display)]