1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 14:55:56 +01:00

Update dependencies and bump up version to 0.5 (#11)

* Bump up bytes to 0.5

* Update example's dependencies

* Bump up version to 0.5
This commit is contained in:
Yuki Okushi 2020-01-24 15:41:57 +09:00 committed by GitHub
parent fe2cc9bf4a
commit 777990d575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View File

@ -3,6 +3,8 @@
## 0.5.0 (in the future) ## 0.5.0 (in the future)
* Migrate to actix-web 2.0.0 and std::future * Migrate to actix-web 2.0.0 and std::future
* Update prost to 0.6
* Update bytes to 0.5
## 0.4.1 (2019-10-03) ## 0.4.1 (2019-10-03)

View File

@ -1,6 +1,6 @@
[package] [package]
name = "actix-protobuf" name = "actix-protobuf"
version = "0.4.1" version = "0.5.0"
edition = "2018" edition = "2018"
authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>"] authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>"]
description = "Protobuf support for actix-web framework." description = "Protobuf support for actix-web framework."
@ -20,7 +20,7 @@ name = "actix_protobuf"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
bytes = "0.4" bytes = "0.5"
futures = "0.3.1" futures = "0.3.1"
derive_more = "0.99" derive_more = "0.99"

View File

@ -1,15 +1,15 @@
[package] [package]
name = "prost-example" name = "prost-example"
version = "0.4.0" version = "0.5.0"
edition = "2018" edition = "2018"
authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>"] authors = ["kingxsp <jin.hb.zh@outlook.com>, Yuki Okushi <huyuumi.dev@gmail.com>"]
[dependencies] [dependencies]
bytes = "0.4" bytes = "0.5"
env_logger = "*" env_logger = "*"
prost = "0.5.0" prost = "0.6.0"
prost-derive = "0.5.0" prost-derive = "0.6.0"
actix = "0.9" actix = "0.9"
actix-rt = "1" actix-rt = "1"

View File

@ -6,7 +6,7 @@ use std::pin::Pin;
use std::task; use std::task;
use std::task::Poll; use std::task::Poll;
use bytes::{BytesMut, IntoBuf}; use bytes::BytesMut;
use prost::DecodeError as ProtoBufDecodeError; use prost::DecodeError as ProtoBufDecodeError;
use prost::EncodeError as ProtoBufEncodeError; use prost::EncodeError as ProtoBufEncodeError;
use prost::Message; use prost::Message;
@ -239,7 +239,7 @@ impl<T: Message + Default + 'static> Future for ProtoBufMessage<T> {
} }
} }
return Ok(<T>::decode(&mut body.into_buf())?); return Ok(<T>::decode(&mut body)?);
} }
.boxed_local(), .boxed_local(),
); );