diff --git a/Cargo.lock b/Cargo.lock index 3e5b1e60997b8..9c1e788f8ac10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -783,7 +783,7 @@ dependencies = [ "aws-types", "bytes 1.5.0", "http 0.2.9", - "http-body", + "http-body 0.4.5", "pin-project-lite", "tracing 0.1.40", ] @@ -944,7 +944,7 @@ dependencies = [ "aws-types", "bytes 1.5.0", "http 0.2.9", - "http-body", + "http-body 0.4.5", "once_cell", "percent-encoding", "regex", @@ -1068,7 +1068,7 @@ dependencies = [ "crc32fast", "hex", "http 0.2.9", - "http-body", + "http-body 0.4.5", "md-5", "pin-project-lite", "sha1", @@ -1100,7 +1100,7 @@ dependencies = [ "bytes-utils", "futures-core", "http 0.2.9", - "http-body", + "http-body 0.4.5", "once_cell", "percent-encoding", "pin-project-lite", @@ -1141,7 +1141,7 @@ dependencies = [ "fastrand 2.0.1", "h2 0.3.24", "http 0.2.9", - "http-body", + "http-body 0.4.5", "hyper", "hyper-rustls", "once_cell", @@ -1179,7 +1179,7 @@ dependencies = [ "bytes-utils", "futures-core", "http 0.2.9", - "http-body", + "http-body 0.4.5", "itoa", "num-integer", "pin-project-lite", @@ -1225,7 +1225,7 @@ dependencies = [ "bytes 1.5.0", "futures-util", "http 0.2.9", - "http-body", + "http-body 0.4.5", "hyper", "itoa", "matchit", @@ -1252,7 +1252,7 @@ dependencies = [ "bytes 1.5.0", "futures-util", "http 0.2.9", - "http-body", + "http-body 0.4.5", "mime", "rustversion", "tower-layer", @@ -4101,6 +4101,29 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "http-body" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643" +dependencies = [ + "bytes 1.5.0", + "http 1.0.0", +] + +[[package]] +name = "http-body-util" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41cb79eb393015dadd30fc252023adb0b2400a0caee0fa2a077e6e21a551e840" +dependencies = [ + "bytes 1.5.0", + "futures-util", + "http 1.0.0", + "http-body 1.0.0", + "pin-project-lite", +] + [[package]] name = "http-range-header" version = "0.3.1" @@ -4168,7 +4191,7 @@ dependencies = [ "futures-util", "h2 0.3.24", "http 0.2.9", - "http-body", + "http-body 0.4.5", "httparse", "httpdate", "itoa", @@ -4710,7 +4733,7 @@ dependencies = [ "either", "futures 0.3.30", "http 0.2.9", - "http-body", + "http-body 0.4.5", "hyper", "hyper-openssl", "hyper-timeout", @@ -4728,7 +4751,7 @@ dependencies = [ "tokio", "tokio-util", "tower", - "tower-http", + "tower-http 0.4.4", "tracing 0.1.40", ] @@ -7404,7 +7427,7 @@ dependencies = [ "futures-util", "h2 0.3.24", "http 0.2.9", - "http-body", + "http-body 0.4.5", "hyper", "hyper-rustls", "hyper-tls", @@ -9198,7 +9221,7 @@ dependencies = [ "flate2", "h2 0.3.24", "http 0.2.9", - "http-body", + "http-body 0.4.5", "hyper", "hyper-timeout", "percent-encoding", @@ -9268,17 +9291,35 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140" dependencies = [ - "async-compression", "base64 0.21.7", "bitflags 2.4.1", "bytes 1.5.0", "futures-core", "futures-util", "http 0.2.9", - "http-body", + "http-body 0.4.5", "http-range-header", "mime", "pin-project-lite", + "tower-layer", + "tower-service", + "tracing 0.1.40", +] + +[[package]] +name = "tower-http" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +dependencies = [ + "async-compression", + "bitflags 2.4.1", + "bytes 1.5.0", + "futures-core", + "http 1.0.0", + "http-body 1.0.0", + "http-body-util", + "pin-project-lite", "tokio", "tokio-util", "tower-layer", @@ -9915,7 +9956,7 @@ dependencies = [ "hickory-proto", "hostname", "http 0.2.9", - "http-body", + "http-body 0.4.5", "http-serde", "hyper", "hyper-openssl", @@ -10007,7 +10048,7 @@ dependencies = [ "tonic", "tonic-build 0.10.2", "tower", - "tower-http", + "tower-http 0.5.2", "tower-test", "tracing 0.1.40", "tracing-core 0.1.32", diff --git a/Cargo.toml b/Cargo.toml index 3281145fb04b8..5f866ce67e785 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -202,7 +202,7 @@ opendal = {version = "0.45", default-features = false, features = ["native-tls", # Tower tower = { version = "0.4.13", default-features = false, features = ["buffer", "limit", "retry", "timeout", "util", "balance", "discover"] } -tower-http = { version = "0.4.4", default-features = false, features = ["decompression-gzip", "trace"]} +tower-http = { version = "0.5.2", default-features = false, features = ["decompression-gzip", "trace"]} # Serde serde.workspace = true serde-toml-merge = { version = "0.3.4", default-features = false }