1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

Use re-exported bytes items from instead of using them directly (#139)

This commit is contained in:
Yuki Okushi
2020-12-01 10:21:56 +09:00
committed by GitHub
parent 699a98493b
commit f970d90894
13 changed files with 9 additions and 14 deletions

View File

@ -21,7 +21,6 @@ path = "src/lib.rs"
[dependencies]
actix-web = { version = "3.0.0", default_features = false }
actix-rt = "1.1.1"
bytes = "0.5"
futures-util = { version = "0.3.5", default-features = false }
derive_more = "0.99"
prost = "0.6.0"

View File

@ -11,7 +11,6 @@ authors = [
actix-web = "3.0.0"
actix-protobuf = { path = "../../" }
bytes = "0.5"
env_logger = "0.7"
prost = "0.6.0"
prost-derive = "0.6.0"

View File

@ -8,7 +8,6 @@ use std::pin::Pin;
use std::task;
use std::task::Poll;
use bytes::BytesMut;
use prost::DecodeError as ProtoBufDecodeError;
use prost::EncodeError as ProtoBufEncodeError;
use prost::Message;
@ -16,6 +15,7 @@ use prost::Message;
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::web::BytesMut;
use actix_web::{FromRequest, HttpMessage, HttpRequest, HttpResponse, Responder};
use futures_util::future::{ready, FutureExt, LocalBoxFuture, Ready};
use futures_util::StreamExt;