Skip to content

Commit ccb5e40

Browse files
asonixseanmonstar
authored andcommitted
Don't compile hyper-tls with native-roots unless rustls-tls-native-roots is enabled
1 parent c56fbae commit ccb5e40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ rustls-tls = ["rustls-tls-webpki-roots"]
4444
rustls-tls-no-provider = ["rustls-tls-manual-roots-no-provider"]
4545

4646
rustls-tls-manual-roots = ["__rustls", "__rustls-ring"]
47-
rustls-tls-webpki-roots = ["dep:webpki-roots", "__rustls", "__rustls-ring"]
48-
rustls-tls-native-roots = ["dep:rustls-native-certs", "__rustls", "__rustls-ring"]
47+
rustls-tls-webpki-roots = ["dep:webpki-roots", "hyper-rustls?/webpki-tokio", "__rustls", "__rustls-ring"]
48+
rustls-tls-native-roots = ["dep:rustls-native-certs", "hyper-rustls?/native-tokio", "__rustls", "__rustls-ring"]
4949
rustls-tls-manual-roots-no-provider = ["__rustls"]
5050

5151
blocking = ["dep:futures-channel", "futures-channel?/sink", "futures-util/io", "futures-util/sink", "tokio/sync"]
@@ -138,7 +138,7 @@ native-tls-crate = { version = "0.2.10", optional = true, package = "native-tls"
138138
tokio-native-tls = { version = "0.3.0", optional = true }
139139

140140
# rustls-tls
141-
hyper-rustls = { version = "0.27.0", default-features = false, optional = true, features = ["http1", "http2", "native-tokio", "tls12"] }
141+
hyper-rustls = { version = "0.27.0", default-features = false, optional = true, features = ["http1", "http2", "tls12"] }
142142
rustls = { version = "0.23.4", optional = true, default-features = false, features = ["std", "tls12"] }
143143
rustls-pki-types = { version = "1.1.0", features = ["alloc"] ,optional = true }
144144
tokio-rustls = { version = "0.26", optional = true, default-features = false, features = ["tls12"] }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy