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 <https://github.com/linkerd/linkerd2/issues/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 <kate@buoyant.io>
This commit is contained in:
parent
30a9f24a98
commit
29e08065c1
659
Cargo.lock
659
Cargo.lock
File diff suppressed because it is too large
Load Diff
37
Cargo.toml
37
Cargo.toml
|
|
@ -100,20 +100,35 @@ lto = true
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
bytes = { version = "1" }
|
bytes = { version = "1" }
|
||||||
h2 = { version = "0.3" }
|
h2 = { version = "0.4" }
|
||||||
http = { version = "0.2" }
|
http = { version = "1" }
|
||||||
http-body = { version = "0.4" }
|
http-body = { version = "1" }
|
||||||
hyper = { version = "0.14.32", default-features = false }
|
hyper = { version = "1", default-features = false }
|
||||||
prost = { version = "0.12" }
|
hyper-util = { version = "0.1", default-features = false }
|
||||||
prost-types = { version = "0.12" }
|
prost = { version = "0.13" }
|
||||||
|
prost-types = { version = "0.13" }
|
||||||
tokio-rustls = { version = "0.26", default-features = false, features = [
|
tokio-rustls = { version = "0.26", default-features = false, features = [
|
||||||
"ring",
|
"ring",
|
||||||
"logging",
|
"logging",
|
||||||
] }
|
] }
|
||||||
tonic = { version = "0.10", default-features = false }
|
tonic = { version = "0.12", default-features = false }
|
||||||
tonic-build = { version = "0.10", default-features = false }
|
tonic-build = { version = "0.12", default-features = false }
|
||||||
|
|
||||||
|
[workspace.dependencies.http-body-util]
|
||||||
|
version = "0.1"
|
||||||
|
# git = "https://github.com/hyperium/http-body.git"
|
||||||
|
# rev = "981369a18918ce5570b2d49c329eca55ae831e87"
|
||||||
|
default-features = false
|
||||||
|
features = ["channel"]
|
||||||
|
|
||||||
|
[patch.crates-io.http-body]
|
||||||
|
git = "https://github.com/hyperium/http-body.git"
|
||||||
|
rev = "86fdf00ff9f5758a42f76a4d06f82e7887a990d8"
|
||||||
|
[patch.crates-io.http-body-util]
|
||||||
|
git = "https://github.com/hyperium/http-body.git"
|
||||||
|
rev = "86fdf00ff9f5758a42f76a4d06f82e7887a990d8"
|
||||||
|
|
||||||
[workspace.dependencies.linkerd2-proxy-api]
|
[workspace.dependencies.linkerd2-proxy-api]
|
||||||
version = "0.15.0"
|
git = "https://github.com/linkerd/linkerd2-proxy-api.git"
|
||||||
# git = "https://github.com/linkerd/linkerd2-proxy-api.git"
|
rev = "981369a18918ce5570b2d49c329eca55ae831e87"
|
||||||
# branch = "main"
|
# https://github.com/linkerd/linkerd2-proxy-api/commit/981369a18918ce5570b2d49c329eca55ae831e87
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ publish = false
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated"] }
|
hyper = { workspace = true }
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
tower = { version = "0.4", default-features = false, features = ["load"] }
|
tower = { version = "0.4", default-features = false, features = ["load"] }
|
||||||
tokio = { version = "1", features = ["macros"] }
|
tokio = { version = "1", features = ["macros"] }
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ bytes = { workspace = true }
|
||||||
deflate = { version = "1", optional = true, features = ["gzip"] }
|
deflate = { version = "1", optional = true, features = ["gzip"] }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
pprof = { version = "0.14", optional = true, features = ["prost-codec"] }
|
pprof = { version = "0.14", optional = true, features = ["prost-codec"] }
|
||||||
serde = "1"
|
serde = "1"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ bytes = { workspace = true }
|
||||||
drain = { version = "0.1", features = ["retain"] }
|
drain = { version = "0.1", features = ["retain"] }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
ipnet = "2.11"
|
ipnet = "2.11"
|
||||||
prometheus-client = "0.22"
|
prometheus-client = "0.22"
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ path = "../../proxy/server-policy"
|
||||||
features = ["proto"]
|
features = ["proto"]
|
||||||
|
|
||||||
[target.'cfg(fuzzing)'.dependencies]
|
[target.'cfg(fuzzing)'.dependencies]
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
linkerd-app-test = { path = "../test" }
|
linkerd-app-test = { path = "../test" }
|
||||||
arbitrary = { version = "1", features = ["derive"] }
|
arbitrary = { version = "1", features = ["derive"] }
|
||||||
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
|
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
|
||||||
|
|
@ -54,7 +54,7 @@ linkerd-meshtls-rustls = { path = "../../meshtls/rustls", features = [
|
||||||
] }
|
] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
linkerd-app-test = { path = "../test" }
|
linkerd-app-test = { path = "../test" }
|
||||||
linkerd-http-metrics = { path = "../../http/metrics", features = ["test-util"] }
|
linkerd-http-metrics = { path = "../../http/metrics", features = ["test-util"] }
|
||||||
linkerd-idle-cache = { path = "../../idle-cache", features = ["test-util"] }
|
linkerd-idle-cache = { path = "../../idle-cache", features = ["test-util"] }
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,8 @@ h2 = { workspace = true }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = [
|
hyper = { workspace = true, features = [
|
||||||
"backports",
|
|
||||||
"deprecated",
|
|
||||||
"http1",
|
"http1",
|
||||||
"http2",
|
"http2",
|
||||||
"stream",
|
|
||||||
"client",
|
"client",
|
||||||
"server",
|
"server",
|
||||||
] }
|
] }
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ linkerd-tonic-watch = { path = "../../tonic-watch" }
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["backports", "deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
tokio = { version = "1", features = ["macros", "sync", "time"] }
|
tokio = { version = "1", features = ["macros", "sync", "time"] }
|
||||||
tokio-rustls = { workspace = true }
|
tokio-rustls = { workspace = true }
|
||||||
tokio-test = "0.4"
|
tokio-test = "0.4"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ futures = { version = "0.3", default-features = false }
|
||||||
h2 = { workspace = true }
|
h2 = { workspace = true }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
linkerd-app-core = { path = "../core" }
|
linkerd-app-core = { path = "../core" }
|
||||||
linkerd-http-route = { path = "../../http/route", optional = true }
|
linkerd-http-route = { path = "../../http/route", optional = true }
|
||||||
linkerd-identity = { path = "../../identity" }
|
linkerd-identity = { path = "../../identity" }
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ HTTP runtime components for Linkerd.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
hyper = { workspace = true, features = ["deprecated"] }
|
hyper = { workspace = true }
|
||||||
tokio = { version = "1", features = ["rt"] }
|
tokio = { version = "1", features = ["rt"] }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ bytes = { workspace = true }
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
tokio = { version = "1", features = ["time"] }
|
tokio = { version = "1", features = ["time"] }
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ linkerd-metrics = { path = "../../metrics" }
|
||||||
linkerd-stack = { path = "../../stack" }
|
linkerd-stack = { path = "../../stack" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
hyper = { workspace = true, features = ["deprecated"] }
|
hyper = { workspace = true }
|
||||||
linkerd-tracing = { path = "../../tracing", features = ["ansi"] }
|
linkerd-tracing = { path = "../../tracing", features = ["ansi"] }
|
||||||
linkerd-mock-http-body = { path = "../../mock/http-body" }
|
linkerd-mock-http-body = { path = "../../mock/http-body" }
|
||||||
tokio = { version = "1", features = ["macros", "rt"] }
|
tokio = { version = "1", features = ["macros", "rt"] }
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,13 @@ where
|
||||||
return Poll::Ready(Some(Err(Capped.into())));
|
return Poll::Ready(Some(Err(Capped.into())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if this.replay_trailers {
|
||||||
|
this.replay_trailers = false;
|
||||||
|
if let Some(ref trailers) = state.trailers {
|
||||||
|
tracing::trace!("Replaying trailers");
|
||||||
|
return Poll::Ready(Some(Ok(Frame::trailers(trailers.clone()))));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If the inner body has previously ended, don't poll it again.
|
// If the inner body has previously ended, don't poll it again.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,7 @@ drain = "0.1"
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, default-features = false, features = [
|
hyper = { workspace = true, default-features = false, features = ["client"] }
|
||||||
"deprecated",
|
|
||||||
"client",
|
|
||||||
] }
|
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
tokio = { version = "1", default-features = false }
|
tokio = { version = "1", default-features = false }
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ test_util = []
|
||||||
deflate = { version = "1", features = ["gzip"] }
|
deflate = { version = "1", features = ["gzip"] }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
linkerd-http-box = { path = "../http/box" }
|
linkerd-http-box = { path = "../http/box" }
|
||||||
linkerd-stack = { path = "../stack", optional = true }
|
linkerd-stack = { path = "../stack", optional = true }
|
||||||
linkerd-system = { path = "../system", optional = true }
|
linkerd-system = { path = "../system", optional = true }
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,10 @@ http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
httparse = "1"
|
httparse = "1"
|
||||||
hyper = { workspace = true, features = [
|
hyper = { workspace = true, features = [
|
||||||
"backports",
|
|
||||||
"client",
|
"client",
|
||||||
"deprecated",
|
|
||||||
"http1",
|
"http1",
|
||||||
"http2",
|
"http2",
|
||||||
"server",
|
"server",
|
||||||
"stream",
|
|
||||||
"runtime",
|
|
||||||
] }
|
] }
|
||||||
hyper-balance = { path = "../../../hyper-balance" }
|
hyper-balance = { path = "../../../hyper-balance" }
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ publish = false
|
||||||
bytes = { workspace = true }
|
bytes = { workspace = true }
|
||||||
http = { workspace = true }
|
http = { workspace = true }
|
||||||
http-body = { workspace = true }
|
http-body = { workspace = true }
|
||||||
hyper = { workspace = true, features = ["backports", "deprecated", "http1", "http2"] }
|
hyper = { workspace = true, features = ["http1", "http2"] }
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
ipnet = "2.11"
|
ipnet = "2.11"
|
||||||
linkerd2-proxy-api = { workspace = true, features = ["tap"] }
|
linkerd2-proxy-api = { workspace = true, features = ["tap"] }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue