diff --git a/Cargo.lock b/Cargo.lock index f09ff750c..cbf03cfa0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -257,7 +257,7 @@ dependencies = [ "bitflags 1.3.2", "bytes", "futures-util", - "http", + "http 0.2.11", "http-body", "hyper", "itoa", @@ -289,7 +289,7 @@ dependencies = [ "async-trait", "bytes", "futures-util", - "http", + "http 0.2.11", "http-body", "mime", "rustversion", @@ -791,7 +791,7 @@ dependencies = [ "hickory-resolver", "hickory-server", "hmac", - "http", + "http 1.0.0", "httparse", "hyper", "hyper-boring", @@ -1591,7 +1591,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http", + "http 0.2.11", "indexmap 1.9.3", "slab", "tokio", @@ -1640,7 +1640,7 @@ dependencies = [ "base64 0.21.5", "bytes", "headers-core", - "http", + "http 0.2.11", "httpdate", "mime", "sha1", @@ -1652,7 +1652,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429" dependencies = [ - "http", + "http 0.2.11", ] [[package]] @@ -1716,7 +1716,7 @@ dependencies = [ "futures-io", "futures-util", "h2", - "http", + "http 0.2.11", "idna 0.4.0", "ipnet", "once_cell", @@ -1771,7 +1771,7 @@ dependencies = [ "h2", "hickory-proto", "hickory-resolver", - "http", + "http 0.2.11", "rustls", "serde", "thiserror", @@ -1831,6 +1831,17 @@ dependencies = [ "itoa", ] +[[package]] +name = "http" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b32afd38673a8016f7c9ae69e5af41a58f81b1d31689040f2f1959594ce194ea" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + [[package]] name = "http-body" version = "0.4.5" @@ -1838,7 +1849,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" dependencies = [ "bytes", - "http", + "http 0.2.11", "pin-project-lite", ] @@ -1877,7 +1888,7 @@ dependencies = [ "futures-core", "futures-util", "h2", - "http", + "http 0.2.11", "http-body", "httparse", "httpdate", @@ -1897,7 +1908,7 @@ source = "git+https://github.com/Watfaq/boring.git?rev=24c006f#24c006fd8200bdf42 dependencies = [ "antidote", "boring", - "http", + "http 0.2.11", "hyper", "linked_hash_set", "once_cell", @@ -2562,7 +2573,7 @@ checksum = "7f51189ce8be654f9b5f7e70e49967ed894e84a06fc35c6c042e64ac1fc5399e" dependencies = [ "async-trait", "bytes", - "http", + "http 0.2.11", "hyper", "opentelemetry", "tokio", @@ -2578,7 +2589,7 @@ dependencies = [ "futures-core", "futures-util", "headers", - "http", + "http 0.2.11", "hyper", "opentelemetry", "opentelemetry-http", @@ -3879,7 +3890,7 @@ dependencies = [ "base64 0.21.5", "bytes", "h2", - "http", + "http 0.2.11", "http-body", "hyper", "hyper-timeout", @@ -3924,7 +3935,7 @@ dependencies = [ "bytes", "futures-core", "futures-util", - "http", + "http 0.2.11", "http-body", "http-range-header", "httpdate", @@ -4132,7 +4143,7 @@ dependencies = [ "byteorder", "bytes", "data-encoding", - "http", + "http 0.2.11", "httparse", "log", "rand", diff --git a/clash_lib/Cargo.toml b/clash_lib/Cargo.toml index 327ad442a..53011cd02 100644 --- a/clash_lib/Cargo.toml +++ b/clash_lib/Cargo.toml @@ -26,7 +26,7 @@ byteorder = "1.5" state = "0.6" lru_time_cache = "0.11" hyper = { version = "0.14", features = ["http1","http2","client", "server", "tcp"] } -http = { version = "0.2" } +http = { version = "1.0" } httparse = "1.8.0" h2 = "0.3" prost = "0.12"