Skip to content

Commit

Permalink
Use ring instead of aws-lc as the default backend for hyper-rustls
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <[email protected]>
  • Loading branch information
starypatyk committed Jan 24, 2025
1 parent 98e9703 commit faeaf50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ protobuf-json-mapping = "3.5"
# but currently, hyper-proxy2 and tokio-tungstenite do not support it.
[target.'cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))'.dependencies]
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls"] }
hyper-rustls = { version = "0.27.2", default-features = false, features = ["aws-lc-rs", "http1", "logging", "tls12", "native-tokio", "http2"] }
hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "logging", "tls12", "native-tokio", "http2"] }
tokio-tungstenite = { version = "0.24", default-features = false, features = ["rustls-tls-native-roots"] }

[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "linux")))'.dependencies]
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls-webpki"] }
hyper-rustls = { version = "0.27.2", default-features = false, features = ["aws-lc-rs", "http1", "logging", "tls12", "webpki-tokio", "http2"] }
hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "logging", "tls12", "webpki-tokio", "http2"] }
tokio-tungstenite = { version = "0.24", default-features = false, features = ["rustls-tls-webpki-roots"] }

[build-dependencies]
Expand All @@ -81,3 +81,8 @@ vergen-gitcl = { version = "1.0.0", default-features = false, features = ["build

[dev-dependencies]
tokio = { version = "1", features = ["macros", "parking_lot"] }

[features]
with-aws-lc-rs = ["hyper-rustls/aws-lc-rs"]
with-ring = ["hyper-rustls/ring"]
default = ["with-ring"]

0 comments on commit faeaf50

Please sign in to comment.