Re-enable h3

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-18 23:19:06 +10:00
parent 38dbe8e6a0
commit da9de8f14c
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
2 changed files with 38 additions and 6 deletions

39
Cargo.lock generated
View file

@ -2104,6 +2104,21 @@ dependencies = [
"tracing",
]
[[package]]
name = "h3"
version = "0.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5069de1c2ac82d9e361b07f2b8a2c582ec071750e063530fc7f3b5197e24805"
dependencies = [
"bytes",
"fastrand 2.1.0",
"futures-util",
"http 1.1.0",
"pin-project-lite",
"tokio",
"tracing",
]
[[package]]
name = "h3-quinn"
version = "0.0.3"
@ -2112,12 +2127,26 @@ checksum = "2d4a1a1763e4f3e82ee9f1ecf2cf862b22cc7316ebe14684e42f94532b5ec64d"
dependencies = [
"bytes",
"futures",
"h3",
"h3 0.0.2",
"quinn 0.10.2",
"quinn-proto 0.10.6",
"tokio-util",
]
[[package]]
name = "h3-quinn"
version = "0.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8c01d99d7cf812fd34ddf135e6c940df9e24f2e759dbc7179fb0e54d4bd6551"
dependencies = [
"bytes",
"futures",
"h3 0.0.5",
"quinn 0.11.2",
"tokio",
"tokio-util",
]
[[package]]
name = "hashbrown"
version = "0.14.5"
@ -2161,8 +2190,8 @@ dependencies = [
"futures-io",
"futures-util",
"h2 0.3.26",
"h3",
"h3-quinn",
"h3 0.0.2",
"h3-quinn 0.0.3",
"http 0.2.12",
"idna 0.4.0",
"ipnet",
@ -3199,6 +3228,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad"
dependencies = [
"bytes",
"futures-io",
"pin-project-lite",
"quinn-proto 0.11.3",
"quinn-udp 0.5.2",
@ -3420,6 +3450,8 @@ dependencies = [
"futures-core",
"futures-util",
"h2 0.4.5",
"h3 0.0.5",
"h3-quinn 0.0.6",
"http 1.1.0",
"http-body",
"http-body-util",
@ -3443,6 +3475,7 @@ dependencies = [
"serde",
"serde_json",
"serde_urlencoded",
"slab",
"sync_wrapper",
"system-configuration",
"tokio",

View file

@ -35,7 +35,7 @@ flate2 = { version = "1.0.28", default-features = false }
futures-util = "0.3.30"
futures-io = "0.3.30"
httpdate = "1.0.2"
reqwest = { version = "0.12.4", features = [
reqwest = { version = "0.12.5", features = [
"http2",
"stream",
"zstd",
@ -118,8 +118,7 @@ trust-dns = ["hickory-dns"]
#
# Experimental HTTP/3 client, this would require `--cfg reqwest_unstable`
# to be passed to `rustc`.
#http3 = ["reqwest/http3"]
http3 = []
http3 = ["reqwest/http3"]
zstd-thin = ["zstd/thin"]