deps: Upgrade reqwest to 0.12.17 (#2168)

* Upgrade reqwest to 0.12.18

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Enable bbr and early data for http3

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* fix dep reqwest 0.12.18 does not exist

use reqwest 0.12.17

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix builder

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix setting tls early data

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add reqwest_unstable as checked-cfg

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-05-29 00:59:21 +10:00 committed by GitHub
parent 268643a6b5
commit a333bb922d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -36,7 +36,7 @@ rc-zip-sync = { version = "4.2.6", features = [
"lzma",
"zstd",
] }
reqwest = { version = "0.12.5", features = [
reqwest = { version = "0.12.17", features = [
"http2",
"stream",
"zstd",
@ -136,3 +136,6 @@ ipconfig = { version = "0.3.2", optional = true, default-features = false }
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(reqwest_unstable)'] }

View file

@ -144,6 +144,11 @@ impl Client {
}
}
#[cfg(all(reqwest_unstable, feature = "http3"))]
{
builder = builder.http3_congestion_bbr().tls_early_data(true);
}
builder
}