diff --git a/crates/binstalk-downloader/Cargo.toml b/crates/binstalk-downloader/Cargo.toml index 74597d1f..842579d3 100644 --- a/crates/binstalk-downloader/Cargo.toml +++ b/crates/binstalk-downloader/Cargo.toml @@ -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)'] } diff --git a/crates/binstalk-downloader/src/remote.rs b/crates/binstalk-downloader/src/remote.rs index 1ab1391c..7ef3d56e 100644 --- a/crates/binstalk-downloader/src/remote.rs +++ b/crates/binstalk-downloader/src/remote.rs @@ -144,6 +144,11 @@ impl Client { } } + #[cfg(all(reqwest_unstable, feature = "http3"))] + { + builder = builder.http3_congestion_bbr().tls_early_data(true); + } + builder }