From 3f33db6728daab51b48ed6a150068071aeeff030 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 10 Mar 2024 02:07:05 +0100 Subject: [PATCH] Remove deprecated `openssl` and `openssl-static` features --- Cargo.toml | 4 ---- build.rs | 7 ------- 2 files changed, 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 425e078..01c5be1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,6 @@ native-tls = ["crunchy-cli-core/native-tls"] openssl-tls = ["dep:native-tls-crate", "native-tls-crate/openssl", "crunchy-cli-core/openssl-tls"] openssl-tls-static = ["dep:native-tls-crate", "native-tls-crate/openssl", "crunchy-cli-core/openssl-tls-static"] -# deprecated -openssl = ["openssl-tls"] -openssl-static = ["openssl-tls-static"] - [dependencies] tokio = { version = "1.35", features = ["macros", "rt-multi-thread", "time"], default-features = false } diff --git a/build.rs b/build.rs index 5b464c4..313cb6d 100644 --- a/build.rs +++ b/build.rs @@ -19,13 +19,6 @@ fn main() -> std::io::Result<()> { println!("cargo:warning=Multiple tls backends are activated (through the '*-tls' features). Consider to activate only one as it is not possible to change the backend during runtime. The active backend for this build will be '{}'.", active_tls_backend) } - if cfg!(feature = "openssl") { - println!("cargo:warning=The 'openssl' feature is deprecated and will be removed in a future version. Use the 'openssl-tls' feature instead.") - } - if cfg!(feature = "openssl-static") { - println!("cargo:warning=The 'openssl-static' feature is deprecated and will be removed in a future version. Use the 'openssl-tls-static' feature instead.") - } - // note that we're using an anti-pattern here / violate the rust conventions. build script are // not supposed to write outside of 'OUT_DIR'. to have the generated files in the build "root" // (the same directory where the output binary lives) is much simpler than in 'OUT_DIR' since