Skip to content

Commit ca50d6b

Browse files
authored
chore(cargo.toml): define http, http-body as a workspace dependencies (#3466)
this is a follow-up to #3456, addressing a suggestion that was made during review: - <#3456 (review)> - <linkerd/linkerd2#8733> this commit modifies the workspace manifest, defining http and http-body as common workspace dependencies. no changes to the lockfile are made because this commit does not affect the dependency graph of the project. Signed-off-by: katelyn martin <[email protected]>
1 parent 7bbfc8e commit ca50d6b

File tree

35 files changed

+53
-51
lines changed

35 files changed

+53
-51
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ debug = 1
9797
lto = true
9898

9999
[workspace.dependencies]
100+
http = { version = "0.2" }
101+
http-body = { version = "0.4" }
100102
hyper = { version = "0.14", default-features = false }
101103
linkerd2-proxy-api = "0.15.0"
102104
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "logging"] }

hyper-balance/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88

99
[dependencies]
1010
futures = { version = "0.3", default-features = false }
11-
http = "0.2"
11+
http = { workspace = true }
1212
hyper = { workspace = true, features = ["deprecated"] }
1313
pin-project = "1"
1414
tower = { version = "0.4", default-features = false, features = ["load"] }

linkerd/addr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
publish = false
88

99
[dependencies]
10-
http = "0.2"
10+
http = { workspace = true }
1111
ipnet = "2.10"
1212
linkerd-dns-name = { path = "../dns/name" }
1313
thiserror = "2"

linkerd/app/admin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ log-streaming = ["linkerd-tracing/stream"]
1616

1717
[dependencies]
1818
deflate = { version = "1", optional = true, features = ["gzip"] }
19-
http = "0.2"
20-
http-body = "0.4"
19+
http = { workspace = true }
20+
http-body = { workspace = true }
2121
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
2222
futures = { version = "0.3", default-features = false }
2323
pprof = { version = "0.14", optional = true, features = ["prost-codec"] }

linkerd/app/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ independently of the inbound and outbound proxy logic.
1515
[dependencies]
1616
bytes = "1"
1717
drain = { version = "0.1", features = ["retain"] }
18-
http = "0.2"
19-
http-body = "0.4"
18+
http = { workspace = true }
19+
http-body = { workspace = true }
2020
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
2121
futures = { version = "0.3", default-features = false }
2222
ipnet = "2.10"

linkerd/app/gateway/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
publish = false
88

99
[dependencies]
10-
http = "0.2"
10+
http = { workspace = true }
1111
futures = { version = "0.3", default-features = false }
1212
linkerd-app-core = { path = "../core" }
1313
linkerd-app-inbound = { path = "../inbound" }

linkerd/app/inbound/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test-util = [
1919

2020
[dependencies]
2121
bytes = "1"
22-
http = "0.2"
22+
http = { workspace = true }
2323
futures = { version = "0.3", default-features = false }
2424
linkerd-app-core = { path = "../core" }
2525
linkerd-app-test = { path = "../test", optional = true }

linkerd/app/inbound/fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cargo-fuzz = true
1111
[target.'cfg(fuzzing)'.dependencies]
1212
arbitrary = { version = "1", features = ["derive"] }
1313
hyper = { version = "0.14", features = ["deprecated", "http1", "http2"] }
14-
http = "0.2"
14+
http = { workspace = true }
1515
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
1616
linkerd-app-core = { path = "../../core" }
1717
linkerd-app-inbound = { path = ".." }

linkerd/app/integration/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ flakey = []
2020
bytes = "1"
2121
futures = { version = "0.3", default-features = false, features = ["executor"] }
2222
h2 = "0.3"
23-
http = "0.2"
24-
http-body = "0.4"
23+
http = { workspace = true }
24+
http-body = { workspace = true }
2525
hyper = { workspace = true, features = [
2626
"backports",
2727
"deprecated",

linkerd/app/outbound/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ prometheus-client-rust-242 = [] # TODO
2020
[dependencies]
2121
ahash = "0.8"
2222
bytes = "1"
23-
http = "0.2"
23+
http = { workspace = true }
2424
futures = { version = "0.3", default-features = false }
2525
linkerd2-proxy-api = { workspace = true, features = ["outbound"] }
2626
once_cell = "1"
@@ -53,7 +53,7 @@ linkerd-tonic-watch = { path = "../../tonic-watch" }
5353

5454
[dev-dependencies]
5555
futures-util = "0.3"
56-
http-body = "0.4"
56+
http-body = { workspace = true }
5757
hyper = { workspace = true, features = ["backports", "deprecated", "http1", "http2"] }
5858
tokio = { version = "1", features = ["macros", "sync", "time"] }
5959
tokio-rustls = { workspace = true }

0 commit comments

Comments
 (0)