From 24bbc6314c991c64d1846162f739f223c44e5779 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Tue, 29 Oct 2024 22:51:36 +0000 Subject: [PATCH] core: expose tls features, ring is new default Fixes #1382 --- core/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index a9208bdfe..860e9dbb7 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -33,7 +33,7 @@ hyper = { version = "1.3", features = ["http1", "http2"] } hyper-util = { version = "0.1", features = ["client"] } http-body-util = "0.1.1" hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls"] } -hyper-rustls = { version = "0.27.2", features = ["http2"] } +hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "http2", "native-tokio", "tls12"] } log = "0.4" nonzero_ext = "0.3" num-bigint = { version = "0.4", features = ["rand"] } @@ -70,3 +70,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"]