From 550c1cc5413daf41d0e95789fd04bf4cb0dada4f Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Tue, 16 Jul 2024 16:08:12 +1000 Subject: [PATCH] chore: Upgrade Tonic to 0.12.0 and Prost to 0.13.1 --- drivers/rust/driver/Cargo.lock | 124 ++++++++++-------- drivers/rust/driver/Cargo.toml | 8 +- drivers/rust/driver/src/proto.rs | 122 +++++++---------- drivers/rust/driver_ffi/Cargo.toml | 6 +- drivers/rust/driver_pact_tests/Cargo.toml | 4 +- .../area_calculator/consumer-rust/Cargo.toml | 6 +- .../gRPC/grpc_status/consumer-rust/Cargo.toml | 8 +- .../gRPC/grpc_status/provider-rust/Cargo.toml | 8 +- .../gRPC/metadata/provider-rust/Cargo.toml | 8 +- .../consumer/Cargo.toml | 8 +- .../protobuf-consumer-rust/Cargo.toml | 8 +- 11 files changed, 152 insertions(+), 158 deletions(-) diff --git a/drivers/rust/driver/Cargo.lock b/drivers/rust/driver/Cargo.lock index be82334a..91bfd61b 100644 --- a/drivers/rust/driver/Cargo.lock +++ b/drivers/rust/driver/Cargo.lock @@ -172,6 +172,12 @@ dependencies = [ "syn", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "autocfg" version = "1.3.0" @@ -180,18 +186,17 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "axum" -version = "0.6.20" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" +checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf" dependencies = [ "async-trait", "axum-core", - "bitflags 1.3.2", "bytes", "futures-util", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.30", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", "itoa", "matchit", "memchr", @@ -200,7 +205,7 @@ dependencies = [ "pin-project-lite", "rustversion", "serde", - "sync_wrapper 0.1.2", + "sync_wrapper 1.0.1", "tower", "tower-layer", "tower-service", @@ -208,17 +213,20 @@ dependencies = [ [[package]] name = "axum-core" -version = "0.3.4" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" +checksum = "a15c63fd72d41492dc4f497196f5da1fb04fb7529e631d73630d1b491e47a2e3" dependencies = [ "async-trait", "bytes", "futures-util", - "http 0.2.12", - "http-body 0.4.6", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", "mime", + "pin-project-lite", "rustversion", + "sync_wrapper 0.1.2", "tower-layer", "tower-service", ] @@ -796,6 +804,25 @@ dependencies = [ "tracing", ] +[[package]] +name = "h2" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http 1.1.0", + "indexmap 2.2.6", + "slab", + "tokio", + "tokio-util", + "tracing", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -937,7 +964,7 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2", + "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", "httparse", @@ -960,9 +987,11 @@ dependencies = [ "bytes", "futures-channel", "futures-util", + "h2 0.4.5", "http 1.1.0", "http-body 1.0.1", "httparse", + "httpdate", "itoa", "pin-project-lite", "smallvec", @@ -1004,14 +1033,15 @@ dependencies = [ [[package]] name = "hyper-timeout" -version = "0.4.1" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +checksum = "3203a961e5c83b6f5498933e78b6b263e208c197b63e9c6c53cc82ffd3f63793" dependencies = [ - "hyper 0.14.30", + "hyper 1.4.1", + "hyper-util", "pin-project-lite", "tokio", - "tokio-io-timeout", + "tower-service", ] [[package]] @@ -1145,15 +1175,6 @@ dependencies = [ "either", ] -[[package]] -name = "itertools" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.13.0" @@ -1751,9 +1772,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" +checksum = "e13db3d3fde688c61e2446b4d843bc27a7e8af269a69440c0308021dc92333cc" dependencies = [ "bytes", "prost-derive", @@ -1761,13 +1782,13 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.12.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22505a5c94da8e3b7c2996394d1c933236c4d743e81a410bcca4e6989fc066a4" +checksum = "5bb182580f71dd070f88d01ce3de9f4da5021db7115d2e1c3605a754153b77c1" dependencies = [ "bytes", "heck", - "itertools 0.12.1", + "itertools 0.13.0", "log", "multimap", "once_cell", @@ -1782,12 +1803,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" +checksum = "18bec9b0adc4eba778b33684b7ba3e7137789434769ee3ce3930463ef904cfca" dependencies = [ "anyhow", - "itertools 0.12.1", + "itertools 0.13.0", "proc-macro2", "quote", "syn", @@ -1795,9 +1816,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.12.6" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9091c90b0a32608e984ff2fa4091273cbdd755d54935c51d520887f4a1dbd5b0" +checksum = "cee5168b05f49d4b0ca581206eb14a7b22fafd963efe729ac48eb03266e25cc2" dependencies = [ "prost", ] @@ -2037,7 +2058,7 @@ dependencies = [ "encoding_rs", "futures-core", "futures-util", - "h2", + "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", "hyper 0.14.30", @@ -2663,16 +2684,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "tokio-io-timeout" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" -dependencies = [ - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-macros" version = "2.3.0" @@ -2765,23 +2776,26 @@ dependencies = [ [[package]] name = "tonic" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76c4eb7a4e9ef9d4763600161f12f5070b92a578e1b634db88a6887844c91a13" +checksum = "f738b6a169a29bca4e39656db89c44a08e09c5b700b896ee9e7459f0652e81dd" dependencies = [ "async-stream", "async-trait", "axum", - "base64 0.21.7", + "base64 0.22.1", "bytes", - "h2", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.30", + "h2 0.4.5", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", + "hyper 1.4.1", "hyper-timeout", + "hyper-util", "percent-encoding", "pin-project", "prost", + "socket2", "tokio", "tokio-stream", "tower", @@ -2792,9 +2806,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4ef6dd70a610078cb4e338a0f79d06bc759ff1b22d2120c2ff02ae264ba9c2" +checksum = "690943cc223adcdd67bb597a2e573ead1b88e999ba37528fe8e6356bf44b29b6" dependencies = [ "prettyplease", "proc-macro2", diff --git a/drivers/rust/driver/Cargo.toml b/drivers/rust/driver/Cargo.toml index c9d9dcda..dfaa2643 100644 --- a/drivers/rust/driver/Cargo.toml +++ b/drivers/rust/driver/Cargo.toml @@ -36,8 +36,8 @@ maplit = "1.0.2" md5 = "0.7.0" os_info = "3.8.2" pact_models = { version = "~1.2.1", default-features = false } -prost = "=0.12.6" -prost-types = "=0.12.6" +prost = "0.13.1" +prost-types = "0.13.1" regex = "1.10.5" reqwest = { version = "0.12.5", default-features = false, features = ["rustls-tls-native-roots", "json", "gzip", "deflate", "stream"] } semver = "1.0.23" @@ -48,7 +48,7 @@ sysinfo = "0.30.13" tar = "0.4.41" toml = "0.8.14" tokio = { version = "1.38.0", features = ["full"] } -tonic = "=0.11.0" +tonic = "0.12.0" tracing = { version = "0.1.40", features = [ "log" ] } tracing-core = "0.1.32" uuid = { version = "1.10.0", features = ["v4"] } @@ -61,4 +61,4 @@ tempdir = "0.3.7" test-log = "0.2.16" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" diff --git a/drivers/rust/driver/src/proto.rs b/drivers/rust/driver/src/proto.rs index a76dada6..c678a22b 100644 --- a/drivers/rust/driver/src/proto.rs +++ b/drivers/rust/driver/src/proto.rs @@ -39,15 +39,15 @@ pub struct CatalogueEntry { /// Nested message and enum types in `CatalogueEntry`. pub mod catalogue_entry { #[derive( - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration )] #[repr(i32)] pub enum EntryType { @@ -124,15 +124,15 @@ pub struct Body { pub mod body { /// Enum of content type override. This is a hint on how the content type should be treated. #[derive( - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration )] #[repr(i32)] pub enum ContentTypeHint { @@ -351,15 +351,15 @@ pub struct InteractionResponse { pub mod interaction_response { /// Type of markup used #[derive( - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration )] #[repr(i32)] pub enum MarkupType { @@ -431,15 +431,15 @@ pub struct GenerateContentRequest { pub mod generate_content_request { /// The mode of the generation, if running from a consumer test or during provider verification #[derive( - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration )] #[repr(i32)] pub enum TestMode { @@ -473,15 +473,15 @@ pub mod generate_content_request { } /// Which part the content is for #[derive( - Clone, - Copy, - Debug, - PartialEq, - Eq, - Hash, - PartialOrd, - Ord, - ::prost::Enumeration + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration )] #[repr(i32)] pub enum ContentFor { @@ -1208,19 +1208,17 @@ pub mod pact_plugin_server { } #[derive(Debug)] pub struct PactPluginServer { - inner: _Inner, + inner: Arc, accept_compression_encodings: EnabledCompressionEncodings, send_compression_encodings: EnabledCompressionEncodings, max_decoding_message_size: Option, max_encoding_message_size: Option, } - struct _Inner(Arc); impl PactPluginServer { pub fn new(inner: T) -> Self { Self::from_arc(Arc::new(inner)) } pub fn from_arc(inner: Arc) -> Self { - let inner = _Inner(inner); Self { inner, accept_compression_encodings: Default::default(), @@ -1283,7 +1281,6 @@ pub mod pact_plugin_server { Poll::Ready(Ok(())) } fn call(&mut self, req: http::Request) -> Self::Future { - let inner = self.inner.clone(); match req.uri().path() { "/io.pact.plugin.PactPlugin/InitPlugin" => { #[allow(non_camel_case_types)] @@ -1314,7 +1311,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = InitPluginSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1358,7 +1354,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = UpdateCatalogueSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1404,7 +1399,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = CompareContentsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1451,7 +1445,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = ConfigureInteractionSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1497,7 +1490,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GenerateContentSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1543,7 +1535,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = StartMockServerSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1590,7 +1581,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = ShutdownMockServerSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1637,7 +1627,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = GetMockServerResultsSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1691,7 +1680,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = PrepareInteractionForVerificationSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1737,7 +1725,6 @@ pub mod pact_plugin_server { let max_encoding_message_size = self.max_encoding_message_size; let inner = self.inner.clone(); let fut = async move { - let inner = inner.0; let method = VerifyInteractionSvc(inner); let codec = tonic::codec::ProstCodec::default(); let mut grpc = tonic::server::Grpc::new(codec) @@ -1759,8 +1746,11 @@ pub mod pact_plugin_server { Ok( http::Response::builder() .status(200) - .header("grpc-status", "12") - .header("content-type", "application/grpc") + .header("grpc-status", tonic::Code::Unimplemented as i32) + .header( + http::header::CONTENT_TYPE, + tonic::metadata::GRPC_CONTENT_TYPE, + ) .body(empty_body()) .unwrap(), ) @@ -1781,16 +1771,6 @@ pub mod pact_plugin_server { } } } - impl Clone for _Inner { - fn clone(&self) -> Self { - Self(Arc::clone(&self.0)) - } - } - impl std::fmt::Debug for _Inner { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{:?}", self.0) - } - } impl tonic::server::NamedService for PactPluginServer { const NAME: &'static str = "io.pact.plugin.PactPlugin"; } diff --git a/drivers/rust/driver_ffi/Cargo.toml b/drivers/rust/driver_ffi/Cargo.toml index bcc020cc..ce9130c9 100644 --- a/drivers/rust/driver_ffi/Cargo.toml +++ b/drivers/rust/driver_ffi/Cargo.toml @@ -11,8 +11,8 @@ expectest = "0.12.0" serde_json = "1.0.120" reqwest = { version = "0.12.5", default-features = false, features = ["rustls-tls-native-roots", "blocking", "json"] } csv = "1.3.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +prost = "0.13.1" +prost-types = "0.13.1" test-log = "0.2.16" tokio = { version = "1.38.0", features = ["full"] } -tonic = "=0.11.0" +tonic = "0.12.0" diff --git a/drivers/rust/driver_pact_tests/Cargo.toml b/drivers/rust/driver_pact_tests/Cargo.toml index 4614ca94..045aa4b7 100644 --- a/drivers/rust/driver_pact_tests/Cargo.toml +++ b/drivers/rust/driver_pact_tests/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" anyhow = "1.0" serde_json = "1.0" tokio = { version = "1.0", features = ["full"] } -prost = "=0.12.6" -prost-types = "=0.12.6" +prost = "0.13.1" +prost-types = "0.13.1" [dev-dependencies] pact-plugin-driver = { version = "~0.7", path = "../driver" } diff --git a/examples/gRPC/area_calculator/consumer-rust/Cargo.toml b/examples/gRPC/area_calculator/consumer-rust/Cargo.toml index 7566dd2c..fcbe29a1 100644 --- a/examples/gRPC/area_calculator/consumer-rust/Cargo.toml +++ b/examples/gRPC/area_calculator/consumer-rust/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" [dependencies] tokio = { version = "1", features = ["full"] } anyhow = "1.0.86" -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" tracing = { version = "0.1", features = [ "log-always" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/gRPC/grpc_status/consumer-rust/Cargo.toml b/examples/gRPC/grpc_status/consumer-rust/Cargo.toml index cc4ebab1..c2512c57 100644 --- a/examples/gRPC/grpc_status/consumer-rust/Cargo.toml +++ b/examples/gRPC/grpc_status/consumer-rust/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" [dependencies] tokio = { version = "1", features = ["full"] } anyhow = "1.0.70" -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" tracing = { version = "0.1", features = [ "log-always" ] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } @@ -22,6 +22,6 @@ serde_json = "1.0.95" maplit = "1.0.2" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" parse-zoneinfo = "0.3.1" # requires pact_model to be updated # https://github.com/chronotope/parse-zoneinfo/commit/61557cd5407e494770285d1925d64c42973f5db0 diff --git a/examples/gRPC/grpc_status/provider-rust/Cargo.toml b/examples/gRPC/grpc_status/provider-rust/Cargo.toml index 4d9f043e..78b38c24 100644 --- a/examples/gRPC/grpc_status/provider-rust/Cargo.toml +++ b/examples/gRPC/grpc_status/provider-rust/Cargo.toml @@ -4,9 +4,9 @@ version = "0.1.0" edition = "2021" [dependencies] -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" tokio = { version = "1.38.0", features = ["full"] } tracing = "0.1.37" tracing-core = "0.1.30" @@ -17,4 +17,4 @@ regex = "1.10.5" test-log = "0.2.16" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" diff --git a/examples/gRPC/metadata/provider-rust/Cargo.toml b/examples/gRPC/metadata/provider-rust/Cargo.toml index 381a7a71..1f012d6d 100644 --- a/examples/gRPC/metadata/provider-rust/Cargo.toml +++ b/examples/gRPC/metadata/provider-rust/Cargo.toml @@ -4,9 +4,9 @@ version = "0.1.0" edition = "2021" [dependencies] -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" tokio = { version = "1.38.0", features = ["full"] } tracing = "0.1.37" tracing-core = "0.1.30" @@ -14,4 +14,4 @@ tracing-subscriber = { version = "0.3.16", features = ["env-filter", "local-time regex = "1.10.5" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" diff --git a/examples/protobuf/area_calculator_example/consumer/Cargo.toml b/examples/protobuf/area_calculator_example/consumer/Cargo.toml index 36617afd..4edf6657 100644 --- a/examples/protobuf/area_calculator_example/consumer/Cargo.toml +++ b/examples/protobuf/area_calculator_example/consumer/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" [dependencies] tokio = { version = "1", features = ["full"] } anyhow = "1.0.86" -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" [dev-dependencies] expectest = "0.12.0" @@ -29,6 +29,6 @@ bytes = "1.6.1" test-log = "0.2.16" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" parse-zoneinfo = "0.3.1" # requires pact_model to be updated # https://github.com/chronotope/parse-zoneinfo/commit/61557cd5407e494770285d1925d64c42973f5db0 diff --git a/examples/protobuf/protobuf-consumer-rust/Cargo.toml b/examples/protobuf/protobuf-consumer-rust/Cargo.toml index 6817ef15..26620ba5 100644 --- a/examples/protobuf/protobuf-consumer-rust/Cargo.toml +++ b/examples/protobuf/protobuf-consumer-rust/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" [dependencies] tokio = { version = "1", features = ["full"] } anyhow = "1.0.70" -tonic = "=0.11.0" -prost = "=0.12.6" -prost-types = "=0.12.6" +tonic = "0.12.0" +prost = "0.13.1" +prost-types = "0.13.1" [dev-dependencies] expectest = "0.12.0" @@ -25,6 +25,6 @@ rand = "0.8.5" maplit = "1.0.2" [build-dependencies] -tonic-build = "=0.11.0" +tonic-build = "0.12.0" parse-zoneinfo = "0.3.1" # requires pact_model to be updated # https://github.com/chronotope/parse-zoneinfo/commit/61557cd5407e494770285d1925d64c42973f5db0