Skip to content

Commit d86a296

Browse files
authored
feat(core): update tonic version to 0.14 (#9167)
# Description of change Update tonic version to 0.14. ## Links to any relevant issues None. ## How the change has been tested - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [ ] Patch-specific tests (correctness, functionality coverage) - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have checked that new and existing unit tests pass locally with my changes
1 parent f6aaba4 commit d86a296

File tree

8 files changed

+322
-80
lines changed

8 files changed

+322
-80
lines changed

Cargo.lock

Lines changed: 306 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ proc-macro2 = "1.0.95"
323323
prometheus = "0.14.0"
324324
proptest = "1.6.0"
325325
proptest-derive = "0.5.1"
326-
prost = "0.13"
326+
prost = "0.14"
327327
protobuf = { version = "3.7.2", features = ["with-bytes"] }
328328
quinn-proto = "0.11.7"
329329
quote = "1.0.23"
@@ -366,9 +366,12 @@ tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"
366366
tokio-stream = { version = "0.1.14", features = ["sync", "net"] }
367367
tokio-util = "0.7.10"
368368
toml = { version = "0.7.4", features = ["preserve_order"] }
369-
tonic = { version = "0.13", features = ["zstd", "transport"] }
370-
tonic-build = { version = "0.13", features = ["prost", "transport"] }
371-
tonic-health = "0.13"
369+
tonic = { version = "0.14", features = ["zstd", "transport"] }
370+
tonic-build = "0.14"
371+
tonic-health = "0.14"
372+
tonic-prost = "0.14"
373+
tonic-prost-build = "0.14"
374+
tonic-rustls = "0.3.0"
372375
tower = { version = "0.4.12", features = ["full", "util", "timeout", "load-shed", "limit"] }
373376
tower-http = { version = "0.5", features = ["cors", "full", "trace", "set-header", "propagate-header"] }
374377
tracing = "0.1.37"

consensus/core/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ tokio-rustls.workspace = true
3535
tokio-stream.workspace = true
3636
tokio-util.workspace = true
3737
tonic.workspace = true
38-
tonic-rustls = "0.2.0"
38+
tonic-prost.workspace = true
39+
tonic-rustls.workspace = true
3940
tower.workspace = true
4041
tower-http.workspace = true
4142
tracing.workspace = true

consensus/core/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() -> Result<()> {
2020
}
2121

2222
fn build_tonic_services(out_dir: &Path) {
23-
let codec_path = "tonic::codec::ProstCodec";
23+
let codec_path = "tonic_prost::ProstCodec";
2424

2525
let service = tonic_build::manual::Service::builder()
2626
.name("ConsensusService")

crates/iota-grpc-types/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ bcs.workspace = true
1515
prost.workspace = true
1616
serde.workspace = true
1717
tonic.workspace = true
18+
tonic-prost.workspace = true
1819

1920
# internal dependencies
2021
iota-json-rpc-types.workspace = true
2122
iota-types.workspace = true
2223

2324
[build-dependencies]
24-
tonic-build.workspace = true
25+
tonic-prost-build.workspace = true

crates/iota-grpc-types/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
fn main() {
5-
tonic_build::configure()
5+
tonic_prost_build::configure()
66
.compile_protos(
77
&[
88
"proto/iota/grpc/v0/common.proto",

crates/starfish/core/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ tokio-rustls.workspace = true
4343
tokio-stream.workspace = true
4444
tokio-util.workspace = true
4545
tonic.workspace = true
46-
tonic-rustls = "0.2.0"
46+
tonic-prost.workspace = true
47+
tonic-rustls.workspace = true
4748
tower.workspace = true
4849
tower-http.workspace = true
4950
tracing.workspace = true

crates/starfish/core/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn main() -> Result<()> {
2020
}
2121

2222
fn build_tonic_services(out_dir: &Path) {
23-
let codec_path = "tonic::codec::ProstCodec";
23+
let codec_path = "tonic_prost::ProstCodec";
2424

2525
let service = tonic_build::manual::Service::builder()
2626
.name("ConsensusService")

0 commit comments

Comments
 (0)