Skip to content

Commit

Permalink
chore(cargo.toml): define prost, prost-types as workspace dependencies
Browse files Browse the repository at this point in the history
this commit modifies the workspace manifest, defining prost and
prost-types 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 17e52f9 commit 7365f14
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ lto = true
http = { version = "0.2" }
http-body = { version = "0.4" }
hyper = { version = "0.14", default-features = false }
prost = { version = "0.12" }
prost-types = { version = "0.12" }
linkerd2-proxy-api = "0.15.0"
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "logging"] }
# linkerd2-proxy-api = { git = "https://github.com/linkerd/linkerd2-proxy-api.git", branch = "main" }
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 @@ -23,7 +23,7 @@ linkerd-identity = { path = "../../identity" }
http = { workspace = true }
http-body = { workspace = true }
pin-project = "1"
prost = "0.12"
prost = { workspace = true }
tonic = { version = "0.10", 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 @@ -20,7 +20,7 @@ ahash = "0.8"
ipnet = "2"
http = { workspace = true }
once_cell = { version = "1" }
prost-types = { version = "0.12", optional = true }
prost-types = { workspace = true, optional = true }
tonic = { version = "0.10", default-features = false }
thiserror = { version = "2", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion linkerd/proxy/server-policy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test-util = []
governor = { version = "0.8", default-features = false, features = ["std"] }
ipnet = "2"
http = { workspace = true }
prost-types = { version = "0.12", optional = true }
prost-types = { workspace = true, optional = true }
thiserror = "2"

linkerd-http-route = { path = "../../http/route" }
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 @@ -22,7 +22,7 @@ linkerd-proxy-http = { path = "../http" }
linkerd-stack = { path = "../../stack" }
linkerd-tls = { path = "../../tls" }
parking_lot = "0.12"
prost-types = "0.12"
prost-types = { workspace = true }
rand = { version = "0.8" }
thiserror = "2"
tokio = { version = "1", features = ["time"] }
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 @@ -16,7 +16,7 @@ http = { workspace = true }
http-body = { workspace = true }
linkerd2-proxy-api = { workspace = true, features = ["destination"] }
once_cell = "1.20"
prost-types = "0.12"
prost-types = { workspace = true }
regex = "1"
tokio = { version = "1", features = ["macros", "rt", "sync", "time"] }
tokio-stream = { version = "0.1", features = ["sync"] }
Expand Down
2 changes: 1 addition & 1 deletion linkerd/transport-header/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linkerd-dns-name = { path = "../dns/name" }
linkerd-error = { path = "../error" }
linkerd-io = { path = "../io" }
linkerd-stack = { path = "../stack" }
prost = "0.12"
prost = { workspace = true }
tokio = { version = "1", features = ["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 @@ -13,8 +13,8 @@ Vendored from https://github.com/census-instrumentation/opencensus-proto/.

[dependencies]
bytes = "1"
prost = "0.12"
prost-types = "0.12"
prost = { workspace = true }
prost-types = { workspace = true }

[dependencies.tonic]
version = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Vendored from https://github.com/open-telemetry/opentelemetry-rust/.

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

Expand Down
4 changes: 2 additions & 2 deletions spiffe-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ publish = false

[dependencies]
bytes = "1"
prost = "0.12"
prost-types = "0.12"
prost = { workspace = true }
prost-types = { workspace = true }

[dependencies.tonic]
version = "0.10"
Expand Down

0 comments on commit 7365f14

Please sign in to comment.