From 2e3a094ef7c0a9ec9fe58acb004c72bd973189ab Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 21 May 2020 17:12:17 +0900 Subject: [PATCH] protobuf: Minimize `futures` dependency --- actix-protobuf/CHANGES.md | 4 ++++ actix-protobuf/Cargo.toml | 2 +- actix-protobuf/src/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/actix-protobuf/CHANGES.md b/actix-protobuf/CHANGES.md index 37cd39cd8..32f6a2434 100644 --- a/actix-protobuf/CHANGES.md +++ b/actix-protobuf/CHANGES.md @@ -4,6 +4,10 @@ * Minimum supported Rust version(MSRV) is now 1.40.0. +## unreleased + +* Minimize `futures` dependency + ## 0.5.1 (2019-02-17) * Move repository to actix-extras diff --git a/actix-protobuf/Cargo.toml b/actix-protobuf/Cargo.toml index 62be081e9..c515195e3 100644 --- a/actix-protobuf/Cargo.toml +++ b/actix-protobuf/Cargo.toml @@ -17,7 +17,7 @@ path = "src/lib.rs" [dependencies] bytes = "0.5" -futures = "0.3.1" +futures-util = { version = "0.3.5", default-features = false } derive_more = "0.99" actix-rt = "1" diff --git a/actix-protobuf/src/lib.rs b/actix-protobuf/src/lib.rs index c9b2f9ddd..d4b3d0ff5 100644 --- a/actix-protobuf/src/lib.rs +++ b/actix-protobuf/src/lib.rs @@ -15,8 +15,8 @@ use actix_web::dev::{HttpResponseBuilder, Payload}; use actix_web::error::{Error, PayloadError, ResponseError}; use actix_web::http::header::{CONTENT_LENGTH, CONTENT_TYPE}; use actix_web::{FromRequest, HttpMessage, HttpRequest, HttpResponse, Responder}; -use futures::future::{ready, FutureExt, LocalBoxFuture, Ready}; -use futures::StreamExt; +use futures_util::future::{ready, FutureExt, LocalBoxFuture, Ready}; +use futures_util::StreamExt; #[derive(Debug, Display)] pub enum ProtoBufPayloadError {