Skip to content

Commit 2a9653a

Browse files
committed
Migrate tonic to workspace
This commit migrates the `tonic` dependency to the workspace. Unfortunately this leaves tonic-build still in shared/Cargo.toml but it's a start. Goal here is to make upgrading tonic more achievable. Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent e5bc6c8 commit 2a9653a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ serde = { version = "1.0", features = ["std", "derive"] }
2525
serde_json = { version = "1.0", features = ["std"] }
2626
thiserror = { version = "1.0" }
2727
tokio = { version = "1.41" }
28+
# If you update tonic, search for tonic-build in sub-crates and update their
29+
# version.
30+
tonic = { version = "0.9", default-features = false, features = [] }
2831
tower = { version = "0.5", default-features = false }
2932
tracing = { version = "0.1" }
3033
uuid = { version = "1.11", default-features = false, features = [
@@ -34,6 +37,7 @@ uuid = { version = "1.11", default-features = false, features = [
3437
once_cell = { version = "1.20" }
3538
hyper = { version = "0.14", default-features = false }
3639

40+
3741
[profile.release]
3842
lto = true # Optimize our binary at link stage.
3943
codegen-units = 1 # Increases compile time but improves optmization alternatives.

integration/ducks/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tokio = { workspace = true, features = [
2626
"net",
2727
] }
2828
tokio-stream = { version = "0.1", features = ["net"] }
29-
tonic = { version = "0.9", default-features = false, features = [
29+
tonic = { workspace = true, default-features = false, features = [
3030
"transport",
3131
"prost",
3232
] }

integration/shared/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99

1010
[dependencies]
1111
serde = { version = "1.0", features = ["derive"] }
12-
tonic = { version = "0.9", default-features = false, features = [
12+
tonic = { workspace = true, default-features = false, features = [
1313
"codegen",
1414
"prost",
1515
"transport",
@@ -18,4 +18,4 @@ prost = "0.11"
1818
serde_json = "1.0"
1919

2020
[build-dependencies]
21-
tonic-build = "0.9"
21+
tonic-build = { version = "0.9" }

integration/sheepdog/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tokio = { version = "1.41", features = [
2222
"time",
2323
"net",
2424
] }
25-
tonic = { version = "0.9", default-features = false, features = [
25+
tonic = { workspace = true, default-features = false, features = [
2626
"transport",
2727
"prost",
2828
] }

0 commit comments

Comments
 (0)