From 40e327f9e65d240f99d5d63d7d0c1f1e5891ba94 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Mon, 10 Feb 2025 08:21:43 +0100 Subject: [PATCH] feat: support alternative TLS backends Adds the `native-tls`, `rustls-tls-webpki-roots` and `rustls-tls-native-roots` feature flags. These are then forwarded to the `reqwest` feature flag counterparts. --- rustainers/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rustainers/Cargo.toml b/rustainers/Cargo.toml index 46c0faf..4fc84af 100644 --- a/rustainers/Cargo.toml +++ b/rustainers/Cargo.toml @@ -17,6 +17,9 @@ rust-version = "1.75.0" [features] default = [] +native-tls = ["reqwest/native-tls"] +rustls-tls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"] +rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"] regex = ["dep:regex"]