From 965b1125e733821b2724a1cd955a4f4947f5fda9 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Mon, 10 Feb 2025 12:01:07 +0100 Subject: [PATCH] fix: enable openssl removal from dependency tree Was previously still included when using rustls backend feature flags. Example usage: ```toml # in Cargo.toml rustainers = { version = "*", default-features = false, features = ["rustls-tls-webpki-roots"] } ``` --- rustainers/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rustainers/Cargo.toml b/rustainers/Cargo.toml index 4fc84af..c846acb 100644 --- a/rustainers/Cargo.toml +++ b/rustainers/Cargo.toml @@ -16,7 +16,7 @@ repository = "https://github.com/wefoxplatform/rustainers" rust-version = "1.75.0" [features] -default = [] +default = ["native-tls"] native-tls = ["reqwest/native-tls"] rustls-tls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"] rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"] @@ -35,7 +35,11 @@ indexmap = "2.3.0" ipnetwork = { version = "0.21.1", features = ["serde"] } path-absolutize = "3.1.1" regex = { version = "1.10.6", optional = true } -reqwest = { version = "0.12.5" } +reqwest = { version = "0.12.5", default-features = false, features = [ + "charset", + "http2", + "macos-system-configuration", +] } serde = { version = "1.0.204", features = ["derive", "rc"] } serde_json = "1.0.122" strum = "0.26.3"