mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-01 16:42:55 +00:00
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:
parent
268643a6b5
commit
a333bb922d
2 changed files with 9 additions and 1 deletions
|
@ -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)'] }
|
||||
|
|
|
@ -144,6 +144,11 @@ impl Client {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(all(reqwest_unstable, feature = "http3"))]
|
||||
{
|
||||
builder = builder.http3_congestion_bbr().tls_early_data(true);
|
||||
}
|
||||
|
||||
builder
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue