Skip to content

Commit

Permalink
chore(deps): define tonic, tonic-build as workspace dependencies (#3473)
Browse files Browse the repository at this point in the history
this commit modifies the workspace manifest, defining tonic and
tonic-build as common workspace dependencies.

no changes to the lockfile are made because this commit does not affect
the dependency graph of the project.

* linkerd/linkerd2#8733

Signed-off-by: katelyn martin <[email protected]>
  • Loading branch information
cratelyn committed Dec 19, 2024
1 parent b513352 commit 49804e7
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 24 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ linkerd2-proxy-api = "0.15.0"
prost = { version = "0.12" }
prost-types = { version = "0.12" }
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "logging"] }
tonic = { version = "0.10", default-features = false }
tonic-build = { version = "0.10", default-features = false }
# linkerd2-proxy-api = { git = "https://github.com/linkerd/linkerd2-proxy-api.git", branch = "main" }

# NB: hyperium/hyper#3796 backports the server connection builder's
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ regex = "1"
thiserror = "2"
tokio = { version = "1", features = ["rt"] }
tokio-stream = { version = "0.1", features = ["time", "sync"] }
tonic = { version = "0.10", default-features = false, features = ["prost"] }
tonic = { workspace = true, default-features = false, features = ["prost"] }
tower = "0.4"
tracing = "0.1"
2 changes: 1 addition & 1 deletion linkerd/app/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ serde_json = "1"
thiserror = "2"
tokio = { version = "1", features = ["macros", "sync", "parking_lot"] }
tokio-stream = { version = "0.1", features = ["time"] }
tonic = { version = "0.10", default-features = false, features = ["prost"] }
tonic = { workspace = true, default-features = false, features = ["prost"] }
tracing = "0.1"
parking_lot = "0.12"
pin-project = "1"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linkerd-proxy-client-policy = { path = "../../proxy/client-policy" }
once_cell = "1"
thiserror = "2"
tokio = { version = "1", features = ["sync"] }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tower = { version = "0.4", default-features = false }
tracing = "0.1"

Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/inbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ parking_lot = "0.12"
rangemap = "1"
thiserror = "2"
tokio = { version = "1", features = ["sync"] }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tower = { version = "0.4", features = ["util"] }
tracing = "0.1"

Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tokio-stream = { version = "0.1", features = ["sync"] }
tokio-rustls = { workspace = true }
rustls-pemfile = "2.2"
tower = { version = "0.4", default-features = false }
tonic = { version = "0.10", features = ["transport"], default-features = false }
tonic = { workspace = true, features = ["transport"], default-features = false }
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = [
"fmt",
Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/outbound/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pin-project = "1"
prometheus-client = "0.22"
thiserror = "2"
tokio = { version = "1", features = ["sync"] }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tower = { version = "0.4", features = ["util"] }
tracing = "0.1"

Expand Down
2 changes: 1 addition & 1 deletion linkerd/app/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ regex = "1"
tokio = { version = "1", features = ["io-util", "net", "rt", "sync"] }
tokio-test = "0.4"
tokio-stream = { version = "0.1", features = ["sync"] }
tonic = { version = "0.10", default-features = false, optional = true }
tonic = { workspace = true, default-features = false, optional = true }
tower = { version = "0.4", default-features = false }
tracing = "0.1"
thiserror = "2"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/opencensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linkerd-error = { path = "../error" }
linkerd-metrics = { path = "../metrics" }
linkerd-trace-context = { path = "../trace-context" }
opencensus-proto = { path = "../../opencensus-proto" }
tonic = { version = "0.10", default-features = false, features = [
tonic = { workspace = true, default-features = false, features = [
"prost",
"codegen",
] }
Expand Down
2 changes: 1 addition & 1 deletion linkerd/opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linkerd-trace-context = { path = "../trace-context" }
opentelemetry = { version = "0.27", default-features = false, features = ["trace"] }
opentelemetry_sdk = { version = "0.27", default-features = false, features = ["trace"] }
opentelemetry-proto = { path = "../../opentelemetry-proto" }
tonic = { version = "0.10", default-features = false, features = [
tonic = { workspace = true, default-features = false, features = [
"prost",
"codegen",
] }
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/api-resolve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ http = { workspace = true }
http-body = { workspace = true }
pin-project = "1"
prost = { workspace = true }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tower = { version = "0.4", default-features = false }
tracing = "0.1"
2 changes: 1 addition & 1 deletion linkerd/proxy/client-policy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ipnet = "2"
http = { workspace = true }
once_cell = { version = "1" }
prost-types = { workspace = true, optional = true }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
thiserror = { version = "2", optional = true }

linkerd-error = { path = "../../error" }
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/identity-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ parking_lot = "0.12"
pin-project = "1"
thiserror = "2"
tokio = { version = "1", features = ["time", "sync"] }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tracing = "0.1"
http-body = { workspace = true }
2 changes: 1 addition & 1 deletion linkerd/proxy/spire-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linkerd-tonic-watch = { path = "../../tonic-watch" }
linkerd-exp-backoff = { path = "../../exp-backoff" }
linkerd-stack = { path = "../../stack" }
tokio = { version = "1", features = ["time", "sync"] }
tonic = "0.10"
tonic = { workspace = true }
tower = "0.4"
tracing = "0.1"
x509-parser = "0.16.0"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/tap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ rand = { version = "0.8" }
thiserror = "2"
tokio = { version = "1", features = ["time"] }
tower = { version = "0.4", default-features = false }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tracing = "0.1"
pin-project = "1"

Expand Down
2 changes: 1 addition & 1 deletion linkerd/service-profiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ prost-types = { workspace = true }
regex = "1"
tokio = { version = "1", features = ["macros", "rt", "sync", "time"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tower = { version = "0.4.13", features = ["retry", "util"] }
thiserror = "2"
tracing = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion linkerd/tonic-stream/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
futures = { version = "0.3", default-features = false }
linkerd-stack = { path = "../stack" }
pin-project = "1"
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tokio = { version = "1", features = ["time"] }
tracing = "0.1"

Expand Down
2 changes: 1 addition & 1 deletion linkerd/tonic-watch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Provides a utility for creating robust watches from a service that returns a str
futures = { version = "0.3", default-features = false }
linkerd-error = { path = "../error" }
linkerd-stack = { path = "../stack" }
tonic = { version = "0.10", default-features = false }
tonic = { workspace = true, default-features = false }
tokio = { version = "1", features = ["macros", "rt", "sync", "time"] }
tracing = "0.1"

Expand Down
4 changes: 2 additions & 2 deletions opencensus-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ prost = { workspace = true }
prost-types = { workspace = true }

[dependencies.tonic]
version = "0.10"
workspace = true
default-features = false
features = ["prost", "codegen"]

[dev-dependencies.tonic-build]
version = "0.10"
workspace = true
default-features = false
features = ["prost"]

Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Vendored from https://github.com/open-telemetry/opentelemetry-rust/.
"""

[dependencies]
tonic = { version = "0.10", features = ["codegen", "prost", "transport"] }
tonic = { workspace = true, features = ["codegen", "prost", "transport"] }
prost = { workspace = true }
opentelemetry = { version = "0.27", default-features = false, features = ["trace"] }
opentelemetry_sdk = { version = "0.27", default-features = false, features = ["trace"] }

[dev-dependencies]
opentelemetry = { version = "0.27", default-features = false, features = ["trace", "testing"] }
tonic-build = { version = "0.10", default-features = false, features = ["prost"] }
tonic-build = { workspace = true, default-features = false, features = ["prost"] }

[lib]
doctest = false
4 changes: 2 additions & 2 deletions spiffe-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ prost = { workspace = true }
prost-types = { workspace = true }

[dependencies.tonic]
version = "0.10"
workspace = true
default-features = false
features = ["prost", "codegen"]

[dev-dependencies.tonic-build]
version = "0.10"
workspace = true
default-features = false
features = ["prost"]

Expand Down
2 changes: 1 addition & 1 deletion tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ license = "Apache-2.0"
publish = false

[dependencies.tonic-build]
version = "0.10"
workspace = true
default-features = false
features = ["prost"]

0 comments on commit 49804e7

Please sign in to comment.