mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 19:11:10 +00:00
files: Minimize futures
dependencies
This commit is contained in:
parent
32a37b7282
commit
245dd471dd
3 changed files with 5 additions and 4 deletions
|
@ -23,7 +23,8 @@ actix-http = "2.0.0-alpha.3"
|
|||
actix-service = "1.0.1"
|
||||
bitflags = "1"
|
||||
bytes = "0.5.3"
|
||||
futures = "0.3.1"
|
||||
futures-core = { version = "0.3.5", default-features = false }
|
||||
futures-util = { version = "0.3.5", default-features = false }
|
||||
derive_more = "0.99.2"
|
||||
log = "0.4"
|
||||
mime = "0.3"
|
||||
|
|
|
@ -24,8 +24,8 @@ use actix_web::http::header::{self, DispositionType};
|
|||
use actix_web::http::Method;
|
||||
use actix_web::{web, FromRequest, HttpRequest, HttpResponse};
|
||||
use bytes::Bytes;
|
||||
use futures::future::{ok, ready, Either, FutureExt, LocalBoxFuture, Ready};
|
||||
use futures::Stream;
|
||||
use futures_core::Stream;
|
||||
use futures_util::future::{ok, ready, Either, FutureExt, LocalBoxFuture, Ready};
|
||||
use mime;
|
||||
use mime_guess::from_ext;
|
||||
use percent_encoding::{utf8_percent_encode, CONTROLS};
|
||||
|
|
|
@ -18,7 +18,7 @@ use actix_web::http::header::{
|
|||
};
|
||||
use actix_web::http::{ContentEncoding, StatusCode};
|
||||
use actix_web::{Error, HttpMessage, HttpRequest, HttpResponse, Responder};
|
||||
use futures::future::{ready, Ready};
|
||||
use futures_util::future::{ready, Ready};
|
||||
|
||||
use crate::range::HttpRange;
|
||||
use crate::ChunkedReadFile;
|
||||
|
|
Loading…
Reference in a new issue