From 49347cd2bb452ebccd0517bd96fb158e66cb385c Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 13 Sep 2022 22:31:31 -0700 Subject: [PATCH] *: bump 0.11.0 (#586) Signed-off-by: Jay Lee --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- compiler/Cargo.toml | 2 +- health/Cargo.toml | 4 ++-- proto/Cargo.toml | 4 ++-- src/call/mod.rs | 4 ++-- src/call/server.rs | 2 +- src/lib.rs | 1 + 8 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 196d3ea2..9794d9b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.11.0 - 2022-09-10 + +- Update prost to 0.10 (#582) + # 0.10.3 - 2022-06-27 - Add support for GRPC_ARG_ENABLE_HTTP_PROXY parameter (#575) diff --git a/Cargo.toml b/Cargo.toml index 90b1780b..80dc7ed4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grpcio" -version = "0.10.3" +version = "0.11.0" edition = "2018" authors = ["The TiKV Project Developers"] license = "Apache-2.0" @@ -55,4 +55,4 @@ no-omit-frame-pointer = ["grpcio-sys/no-omit-frame-pointer"] travis-ci = { repository = "tikv/grpc-rs" } [patch.crates-io] -grpcio-compiler = { path = "compiler", version = "0.10.0", default-features = false } +grpcio-compiler = { path = "compiler", version = "0.11.0", default-features = false } diff --git a/compiler/Cargo.toml b/compiler/Cargo.toml index 7fb1e383..5cf09314 100644 --- a/compiler/Cargo.toml +++ b/compiler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grpcio-compiler" -version = "0.10.0" +version = "0.11.0" edition = "2018" authors = ["The TiKV Project Developers"] license = "Apache-2.0" diff --git a/health/Cargo.toml b/health/Cargo.toml index 7a56c601..a4cd6387 100644 --- a/health/Cargo.toml +++ b/health/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grpcio-health" -version = "0.10.0" +version = "0.11.0" edition = "2018" authors = ["The TiKV Project Developers"] license = "Apache-2.0" @@ -20,7 +20,7 @@ prost-codec = ["grpcio/prost-codec", "prost"] [dependencies] futures-executor = "0.3" futures-util = { version = "0.3", default-features = false, features = ["std"] } -grpcio = { path = "..", version = "0.10.0", default-features = false } +grpcio = { path = "..", version = "0.11.0", default-features = false } prost = { version = "0.10", optional = true } protobuf = { version = "2", optional = true } log = "0.4" diff --git a/proto/Cargo.toml b/proto/Cargo.toml index 96b24eac..49edd078 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grpcio-proto" -version = "0.10.0" +version = "0.11.0" edition = "2018" authors = ["The TiKV Project Developers"] license = "Apache-2.0" @@ -18,7 +18,7 @@ protobuf-codec = ["grpcio/protobuf-codec", "protobuf-build/grpcio-protobuf-codec prost-codec = ["prost-derive", "prost-types", "bytes", "lazy_static", "grpcio/prost-codec", "prost", "protobuf-build/grpcio-prost-codec"] [dependencies] -grpcio = { path = "..", features = ["boringssl"], version = "0.10.0", default-features = false } +grpcio = { path = "..", features = ["boringssl"], version = "0.11.0", default-features = false } bytes = { version = "1.0", optional = true } prost = { version = "0.10", optional = true } prost-derive = { version = "0.10", optional = true } diff --git a/src/call/mod.rs b/src/call/mod.rs index 8a4f7e61..f001e9a6 100644 --- a/src/call/mod.rs +++ b/src/call/mod.rs @@ -344,7 +344,7 @@ where let code = f(batch_ptr, tag_ptr); if code != grpc_call_error::GRPC_CALL_OK { unsafe { - Box::from_raw(tag_ptr); + drop(Box::from_raw(tag_ptr)); } panic!("create call fail: {:?}", code); } @@ -509,7 +509,7 @@ impl Call { }; if code != grpc_call_error::GRPC_CALL_OK { unsafe { - Box::from_raw(tag_ptr); + drop(Box::from_raw(tag_ptr)); } panic!("create call fail: {:?}", code); } diff --git a/src/call/server.rs b/src/call/server.rs index 8e31f2ee..7e575141 100644 --- a/src/call/server.rs +++ b/src/call/server.rs @@ -125,7 +125,7 @@ impl RequestContext { let call = grpc_sys::grpcwrap_request_call_context_get_call(request_ctx); let code = grpc_sys::grpcwrap_call_recv_message(call, batch_ctx, tag_ptr as _); if code != grpc_call_error::GRPC_CALL_OK { - Box::from_raw(tag_ptr); + drop(Box::from_raw(tag_ptr)); // it should not failed. panic!("try to receive message fail: {:?}", code); } diff --git a/src/lib.rs b/src/lib.rs index c3d2a00b..970b6f3b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,7 @@ framework that puts mobile and HTTP/2 first. grpcio is built on [gRPC Core] and #![allow(clippy::new_without_default)] #![allow(clippy::cast_lossless)] #![allow(clippy::option_map_unit_fn)] +#![allow(clippy::derive_partial_eq_without_eq)] use grpcio_sys as grpc_sys; #[macro_use]