Skip to content

Commit 2463081

Browse files
Update prost to version 0.13 (#651)
Signed-off-by: Ionut Slaveanu <[email protected]>
1 parent b82c902 commit 2463081

File tree

29 files changed

+82
-115
lines changed

29 files changed

+82
-115
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ futures-executor = "0.3"
2323
futures-util = { version = "0.3", default-features = false, features = ["std", "sink"] }
2424
protobuf = { version = "2.0", optional = true }
2525
protobufv3 = { package = "protobuf", version = "3.2", optional = true }
26-
prost = { version = "0.12", optional = true }
26+
prost = { version = "0.13", optional = true }
2727
bytes = { version = "1.0", optional = true }
2828
log = "0.4"
2929
parking_lot = "0.12"

compiler/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ prost-codec = ["prost-build", "prost-types", "prost", "derive-new", "tempfile"]
1818

1919
[dependencies]
2020
protobuf = { version = "2", optional = true }
21-
prost = { version = "0.12", optional = true }
22-
prost-build = { version = "0.12", optional = true }
23-
prost-types = { version = "0.12", optional = true }
21+
prost = { version = "0.13", optional = true }
22+
prost-build = { version = "0.13", optional = true }
23+
prost-types = { version = "0.13", optional = true }
2424
derive-new = { version = "0.6", optional = true }
2525
tempfile = { version = "3.0", optional = true }
2626

compiler/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ impl<'a> ServiceGen<'a> {
574574

575575
fn write_client(&self, w: &mut CodeWriter) {
576576
w.write_line("#[derive(Clone)]");
577-
w.pub_struct(&self.client_name(), |w| {
577+
w.pub_struct(self.client_name(), |w| {
578578
// This can also be exposed by a method. But it may introduce a name conflict
579579
// between service definition and method name. Marking it public may put extra
580580
// restrict on compatability, but it should not be an issue.
@@ -583,7 +583,7 @@ impl<'a> ServiceGen<'a> {
583583

584584
w.write_line("");
585585

586-
w.impl_self_block(&self.client_name(), |w| {
586+
w.impl_self_block(self.client_name(), |w| {
587587
w.pub_fn("new(channel: ::grpcio::Channel) -> Self", |w| {
588588
w.expr_block(&self.client_name(), |w| {
589589
w.field_entry("client", "::grpcio::Client::new(channel)");

grpc-sys/bindings/bindings.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -704,16 +704,6 @@ pub struct grpc_server {
704704
pub struct grpc_call {
705705
_unused: [u8; 0],
706706
}
707-
#[repr(C)]
708-
#[derive(Debug, Copy, Clone)]
709-
pub struct grpc_socket_mutator {
710-
_unused: [u8; 0],
711-
}
712-
#[repr(C)]
713-
#[derive(Debug, Copy, Clone)]
714-
pub struct grpc_socket_factory {
715-
_unused: [u8; 0],
716-
}
717707
#[repr(u32)]
718708
#[doc = " Type specifier for grpc_arg"]
719709
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]

grpc-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ fn bindgen_grpc(file_path: &Path) {
464464
.blocklist_type(r"gpr_mu")
465465
.blocklist_type(r"gpr_cv")
466466
.blocklist_type(r"gpr_once")
467+
.blocklist_type(r"grpc_socket_.*")
467468
.constified_enum_module(r"grpc_status_code")
468469
.layout_tests(gen_tests)
469470
.default_enum_style(bindgen::EnumVariation::Rust {

health/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ prost-codec = ["grpcio/prost-codec", "prost"]
2222
futures-executor = "0.3"
2323
futures-util = { version = "0.3", default-features = false, features = ["std"] }
2424
grpcio = { path = "..", version = "0.13.0", default-features = false }
25-
prost = { version = "0.12", optional = true }
25+
prost = { version = "0.13", optional = true }
2626
protobuf = { version = "2", optional = true }
2727
protobufv3 = { package = "protobuf", version = "3.2", optional = true }
2828
log = "0.4"

health/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
//! assert_eq!(statuss_resp.status, ServingStatus::Serving);
3232
//! ```
3333
34+
#[allow(renamed_and_removed_lints)]
3435
pub mod proto;
3536
mod service;
3637

health/src/proto/prost/grpc.health.v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct HealthCheckRequest {
66
pub service: ::prost::alloc::string::String,
77
}
88
#[allow(clippy::derive_partial_eq_without_eq)]
9-
#[derive(Clone, PartialEq, ::prost::Message)]
9+
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1010
pub struct HealthCheckResponse {
1111
#[prost(enumeration = "health_check_response::ServingStatus", tag = "1")]
1212
pub status: i32,

health/src/proto/protobuf_v3/health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file is generated by rust-protobuf 3.4.0. Do not edit
1+
// This file is generated by rust-protobuf 3.5.0. Do not edit
22
// @generated
33

44
// https://github.com/rust-lang/rust-clippy/issues/702
@@ -22,7 +22,7 @@
2222
2323
/// Generated files are compatible only with the same version
2424
/// of protobuf runtime.
25-
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_4_0;
25+
const _PROTOBUF_VERSION_CHECK: () = ::protobufv3::VERSION_3_5_0;
2626

2727
// @@protoc_insertion_point(message:grpc.health.v1.HealthCheckRequest)
2828
#[derive(PartialEq,Clone,Default,Debug)]

interop/tests/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ macro_rules! mk_test {
5353
mk_test!(empty_unary);
5454
mk_test!(large_unary);
5555
// FIXME(#305) Intermittent test.
56-
#[cfg(not(feature = "openssl"))]
5756
mk_test!(client_streaming);
5857
mk_test!(server_streaming);
5958
// FIXME(#306) Intermittent test.
60-
#[cfg(not(feature = "openssl"))]
6159
mk_test!(ping_pong);
6260
mk_test!(custom_metadata);
6361
mk_test!(empty_stream);

0 commit comments

Comments
 (0)