Skip to content

Commit

Permalink
Make HTTP/3 dependencies optional
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
  • Loading branch information
kckeiks committed Aug 6, 2022
1 parent 4a5f526 commit eb66d19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Expand Up @@ -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.
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit eb66d19

Please sign in to comment.