From 45a7dcba90cf97dbd90f6a6ed1b6e7d35e4dd2e5 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 29 Aug 2023 18:40:55 +0100 Subject: [PATCH] chore(tls): fix min rustls version --- actix-tls/Cargo.toml | 7 ++++++- bytestring/Cargo.toml | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/actix-tls/Cargo.toml b/actix-tls/Cargo.toml index f1c40332..82799450 100755 --- a/actix-tls/Cargo.toml +++ b/actix-tls/Cargo.toml @@ -17,6 +17,11 @@ rust-version.workspace = true all-features = true rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.cargo-machete] +ignored = [ + "rustls_021", # specified to force version with add_trust_anchors method +] + [features] default = ["accept", "connect"] @@ -68,6 +73,7 @@ tokio-rustls-023 = { package = "tokio-rustls", version = "0.23", optional = true webpki-roots-022 = { package = "webpki-roots", version = "0.22", optional = true } # rustls v0.21 +rustls-021 = { package = "rustls", version = "0.21.6" } tokio-rustls-024 = { package = "tokio-rustls", version = "0.24", optional = true } webpki-roots-025 = { package = "webpki-roots", version = "0.25", optional = true } @@ -81,7 +87,6 @@ actix-server = "2" bytes = "1" env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["sink"] } -log = "0.4" rcgen = "0.11" rustls-pemfile = "1" tokio-rustls-024 = { package = "tokio-rustls", version = "0.24", features = ["dangerous_configuration"] } diff --git a/bytestring/Cargo.toml b/bytestring/Cargo.toml index ab0e43c6..f3efdbab 100644 --- a/bytestring/Cargo.toml +++ b/bytestring/Cargo.toml @@ -22,4 +22,3 @@ serde = { version = "1.0", optional = true } ahash = { version = "0.8", default-features = false } serde_json = "1.0" static_assertions = "1.1" -rustversion = "1"