From 58b3b14384c773c75c1fd4b1b96f019f336fb87e Mon Sep 17 00:00:00 2001 From: Louis-Vincent Date: Tue, 5 Aug 2025 15:26:34 -0400 Subject: [PATCH 1/2] tonic: upgrade to tonic 0.14 --- Cargo.toml | 12 +++++++----- build.rs | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a934c77..178684c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "etcd-client" version = "0.16.1" authors = ["The etcd-client Authors "] edition = "2021" -rust-version = "1.80.0" +rust-version = "1.86.0" readme = "README.md" license = "MIT OR Apache-2.0" description = "An etcd v3 API client" @@ -22,9 +22,10 @@ build-server = ["pub-response-field"] raw-channel = [] [dependencies] -tonic = "0.13.1" -prost = "0.13" -tokio = "1.38" +tonic = "0.14" +prost = "0.14" +tonic-prost = "0.14" +tokio = "1" tokio-stream = "0.1" tower-service = "0.3" http = "1.1" @@ -39,7 +40,8 @@ hyper-util = { version = "0.1", features = ["client-legacy"], optional = true } tokio = { version = "1.38", features = ["full"] } [build-dependencies] -tonic-build = { version = "0.13.1", default-features = false, features = ["prost"] } +tonic-build = { version = "0.14", default-features = false } +tonic-prost-build = "0.14" [package.metadata.docs.rs] features = ["tls", "tls-roots"] diff --git a/build.rs b/build.rs index 5fcda06..d23be05 100644 --- a/build.rs +++ b/build.rs @@ -12,7 +12,7 @@ fn main() { let proto_root = "proto"; println!("cargo:rerun-if-changed={proto_root}"); - tonic_build::configure() + tonic_prost_build::configure() .build_server(should_build_server()) .compile_protos( &[ From eac65a16045b8d7d9aeb86ae996f9e9148241733 Mon Sep 17 00:00:00 2001 From: Louis-Vincent Date: Mon, 8 Sep 2025 13:49:41 -0400 Subject: [PATCH 2/2] Cargo.toml: revert back to 1.80 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 178684c..9fce191 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "etcd-client" version = "0.16.1" authors = ["The etcd-client Authors "] edition = "2021" -rust-version = "1.86.0" +rust-version = "1.80.0" readme = "README.md" license = "MIT OR Apache-2.0" description = "An etcd v3 API client"