Skip to content

Commit e5ce0b5

Browse files
paolobarboliniseanmonstar
authored andcommitted
fix: don't enable hyper-rustls/http2 unless http2 is already enabled
1 parent ccb5e40 commit e5ce0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ default = ["default-tls", "charset", "http2", "macos-system-configuration"]
3333
# functionality for it.
3434
default-tls = ["dep:hyper-tls", "dep:native-tls-crate", "__tls", "dep:tokio-native-tls"]
3535

36-
http2 = ["h2", "hyper/http2", "hyper-util/http2"]
36+
http2 = ["h2", "hyper/http2", "hyper-util/http2", "hyper-rustls?/http2"]
3737

3838
# Enables native-tls specific functionality not available by default.
3939
native-tls = ["default-tls"]
@@ -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", "tls12"] }
141+
hyper-rustls = { version = "0.27.0", default-features = false, optional = true, features = ["http1", "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)