From eb66d19a937c279fc26ec77235f5cc6b96e04d05 Mon Sep 17 00:00:00 2001 From: Miguel Guarniz Date: Sat, 6 Aug 2022 11:39:02 -0400 Subject: [PATCH] Make HTTP/3 dependencies optional Signed-off-by: Miguel Guarniz --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 555500fab..7e9391dfa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ stream = ["tokio/fs", "tokio-util"] socks = ["tokio-socks"] # Experimental HTTP/3 client. -http3 = ["rustls-tls"] +http3 = ["rustls-tls", "h3", "h3-quinn", "quinn", "futures-channel"] # Internal (PRIVATE!) features used to aid testing. # Don't rely on these whatsoever. They may disappear at anytime. @@ -140,10 +140,10 @@ tokio-socks = { version = "0.5.1", optional = true } trust-dns-resolver = { version = "0.21", optional = true } # HTTP/3 experimental support -h3 = { git = "https://github.com/hyperium/h3" } -h3-quinn = { git = "https://github.com/hyperium/h3" } -quinn = { version = "0.8", default-features = false, features = ["tls-rustls", "ring"] } -futures-channel = "0.3" +h3 = { git = "https://github.com/hyperium/h3", optional = true } +h3-quinn = { git = "https://github.com/hyperium/h3", optional = true } +quinn = { version = "0.8", default-features = false, features = ["tls-rustls", "ring"], optional = true } +futures-channel = { version="0.3", optional = true} [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]