Skip to content

Commit 0dcbfb0

Browse files
committed
chore(deps): upgrade to hyper 1.x
note: this commit will not compile, code changes are intentionally elided from this commit. this commit upgrades hyper, http, tonic, prost, related dependencies, and their assorted cargo features. see <linkerd/linkerd2#8733>. --- squash: chore(deps): add hyper-util workspace dependency chore(deps): add http-body-util workspace dependency chore(deps): upgrade linkerd2-proxy-api this commit represents main as of linkerd/linkerd2-proxy-api#421. Signed-off-by: katelyn martin <[email protected]>
1 parent c4a823c commit 0dcbfb0

File tree

17 files changed

+506
-334
lines changed

17 files changed

+506
-334
lines changed

Cargo.lock

Lines changed: 453 additions & 295 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,41 @@ lto = true
101101
[workspace.dependencies]
102102
bytes = { version = "1" }
103103
drain = { version = "0.1", default-features = false }
104-
h2 = { version = "0.3" }
105-
http = { version = "0.2" }
106-
http-body = { version = "0.4" }
107-
hyper = { version = "0.14.32", default-features = false }
108-
prost = { version = "0.12" }
109-
prost-build = { version = "0.12", default-features = false }
110-
prost-types = { version = "0.12" }
111-
tokio-rustls = { version = "0.26", default-features = false, features = [
112-
"ring",
113-
"logging",
114-
] }
115-
tonic = { version = "0.10", default-features = false }
116-
tonic-build = { version = "0.10", default-features = false }
104+
h2 = { version = "0.4" }
105+
http = { version = "1" }
106+
http-body = { version = "1" }
107+
hyper = { version = "1", default-features = false }
108+
hyper-util = { version = "0.1", default-features = false }
109+
prost = { version = "0.13" }
110+
prost-build = { version = "0.13", default-features = false }
111+
prost-types = { version = "0.13" }
112+
tonic = { version = "0.12", default-features = false }
113+
tonic-build = { version = "0.12", default-features = false }
117114
tower = { version = "0.4.13", default-features = false }
118115
tower-service = { version = "0.3" }
119116
tower-test = { version = "0.4" }
120117

118+
[workspace.dependencies.http-body-util]
119+
version = "0.1"
120+
default-features = false
121+
features = ["channel"]
122+
123+
[workspace.dependencies.tokio-rustls]
124+
version = "0.26"
125+
default-features = false
126+
features = ["logging", "ring"]
127+
128+
# Temporarily patch `http-body` and its sibling `http-body-util`, using a
129+
# fork in the `linkerd` Github oranization. When hyperium/http-body#140 and
130+
# hyperium/http-body#140 have been released, this can be removed.
131+
[patch.crates-io.http-body]
132+
git = "https://github.com/linkerd/http-body.git"
133+
rev = "c86632ea5c869f28701b8de386e5c19b4388462b"
134+
[patch.crates-io.http-body-util]
135+
git = "https://github.com/linkerd/http-body.git"
136+
rev = "c86632ea5c869f28701b8de386e5c19b4388462b"
137+
121138
[workspace.dependencies.linkerd2-proxy-api]
122-
version = "0.15.0"
123-
# git = "https://github.com/linkerd/linkerd2-proxy-api.git"
124-
# branch = "main"
139+
git = "https://github.com/linkerd/linkerd2-proxy-api.git"
140+
rev = "981369a18918ce5570b2d49c329eca55ae831e87"
141+
# https://github.com/linkerd/linkerd2-proxy-api/commit/981369a18918ce5570b2d49c329eca55ae831e87

hyper-balance/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ publish = false
1010
futures = { version = "0.3", default-features = false }
1111
http = { workspace = true }
1212
http-body = { workspace = true }
13-
hyper = { workspace = true, features = ["deprecated"] }
13+
hyper = { workspace = true }
1414
pin-project = "1"
1515
tower = { workspace = true, default-features = false, features = ["load"] }
1616
tokio = { version = "1", features = ["macros"] }

linkerd/app/admin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bytes = { workspace = true }
1919
deflate = { version = "1", optional = true, features = ["gzip"] }
2020
http = { workspace = true }
2121
http-body = { workspace = true }
22-
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
22+
hyper = { workspace = true, features = ["http1", "http2"] }
2323
futures = { version = "0.3", default-features = false }
2424
pprof = { version = "0.14", optional = true, features = ["prost-codec"] }
2525
serde = "1"

linkerd/app/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bytes = { workspace = true }
1717
drain = { workspace = true, features = ["retain"] }
1818
http = { workspace = true }
1919
http-body = { workspace = true }
20-
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
20+
hyper = { workspace = true, features = ["http1", "http2"] }
2121
futures = { version = "0.3", default-features = false }
2222
ipnet = "2.11"
2323
prometheus-client = "0.22"

linkerd/app/inbound/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ path = "../../proxy/server-policy"
4545
features = ["proto"]
4646

4747
[target.'cfg(fuzzing)'.dependencies]
48-
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
48+
hyper = { workspace = true, features = ["http1", "http2"] }
4949
linkerd-app-test = { path = "../test" }
5050
arbitrary = { version = "1", features = ["derive"] }
5151
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
@@ -54,7 +54,7 @@ linkerd-meshtls-rustls = { path = "../../meshtls/rustls", features = [
5454
] }
5555

5656
[dev-dependencies]
57-
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
57+
hyper = { workspace = true, features = ["http1", "http2"] }
5858
linkerd-app-test = { path = "../test" }
5959
linkerd-http-body-compat = { path = "../../http/body-compat" }
6060
linkerd-http-metrics = { path = "../../http/metrics", features = ["test-util"] }

linkerd/app/integration/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ h2 = { workspace = true }
2323
http = { workspace = true }
2424
http-body = { workspace = true }
2525
hyper = { workspace = true, features = [
26-
"backports",
27-
"deprecated",
2826
"http1",
2927
"http2",
30-
"stream",
3128
"client",
3229
"server",
3330
] }

linkerd/app/outbound/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ linkerd-tonic-watch = { path = "../../tonic-watch" }
5454
[dev-dependencies]
5555
futures-util = "0.3"
5656
http-body = { workspace = true }
57-
hyper = { workspace = true, features = ["backports", "deprecated", "http1", "http2"] }
57+
hyper = { workspace = true, features = ["http1", "http2"] }
5858
tokio = { version = "1", features = ["macros", "sync", "time"] }
5959
tokio-rustls = { workspace = true }
6060
tokio-test = "0.4"

linkerd/app/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ futures = { version = "0.3", default-features = false }
1717
h2 = { workspace = true }
1818
http = { workspace = true }
1919
http-body = { workspace = true }
20-
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
20+
hyper = { workspace = true, features = ["http1", "http2"] }
2121
linkerd-app-core = { path = "../core" }
2222
linkerd-http-route = { path = "../../http/route", optional = true }
2323
linkerd-identity = { path = "../../identity" }

linkerd/http/executor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ HTTP runtime components for Linkerd.
1010
"""
1111

1212
[dependencies]
13-
hyper = { workspace = true, features = ["deprecated"] }
13+
hyper = { workspace = true }
1414
tokio = { version = "1", features = ["rt"] }
1515
tracing = "0.1"

0 commit comments

Comments
 (0)