From faeaf506d64ab988d6cc950b58dbe22c0eed9386 Mon Sep 17 00:00:00 2001 From: Dariusz Olszewski Date: Thu, 23 Jan 2025 23:32:30 +0100 Subject: [PATCH] Use ring instead of aws-lc as the default backend for hyper-rustls Signed-off-by: Dariusz Olszewski --- core/Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 62355325..79423ee9 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -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] @@ -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"]