From 671ec40481f7fd66b4173ba0ef21888a753d2aaa Mon Sep 17 00:00:00 2001 From: Tayfun Bocek Date: Sat, 8 Jun 2024 02:30:14 +0300 Subject: [PATCH] fix: Add TLS support, and allow changing TLS backend. --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 298ce88..aa875f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,10 @@ leptos = { version = "0.6", optional = true } serde_json = "1.0" [features] -default = [] +default = ["default-tls"] +default-tls = ["reqwest/default-tls"] +native-tls = ["reqwest/native-tls"] +rustls-tls = ["reqwest/rustls-tls"] leptos = ["web-sys/AbortController", "dep:leptos"] [target.'cfg(target_family = "wasm")'.dependencies]