Skip to content

Commit 875d247

Browse files
lvboudrebelltoy
authored andcommitted
tonic: upgrade to tonic 0.14
1 parent 895a8f1 commit 875d247

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "etcd-client"
33
version = "0.16.1"
44
authors = ["The etcd-client Authors <davidli2010@foxmail.com>"]
55
edition = "2021"
6-
rust-version = "1.80.0"
6+
rust-version = "1.86.0"
77
readme = "README.md"
88
license = "MIT OR Apache-2.0"
99
description = "An etcd v3 API client"
@@ -22,9 +22,10 @@ build-server = ["pub-response-field"]
2222
raw-channel = []
2323

2424
[dependencies]
25-
tonic = "0.13.1"
26-
prost = "0.13"
27-
tokio = "1.38"
25+
tonic = "0.14"
26+
prost = "0.14"
27+
tonic-prost = "0.14"
28+
tokio = "1"
2829
tokio-stream = "0.1"
2930
tower-service = "0.3"
3031
http = "1.1"
@@ -39,7 +40,8 @@ hyper-util = { version = "0.1", features = ["client-legacy"], optional = true }
3940
tokio = { version = "1.38", features = ["full"] }
4041

4142
[build-dependencies]
42-
tonic-build = { version = "0.13.1", default-features = false, features = ["prost"] }
43+
tonic-build = { version = "0.14", default-features = false }
44+
tonic-prost-build = "0.14"
4345

4446
[package.metadata.docs.rs]
4547
features = ["tls", "tls-roots"]

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
let proto_root = "proto";
1313
println!("cargo:rerun-if-changed={proto_root}");
1414

15-
tonic_build::configure()
15+
tonic_prost_build::configure()
1616
.build_server(should_build_server())
1717
.compile_protos(
1818
&[

0 commit comments

Comments
 (0)