From e6edaa2c80b6493fe4fd43bd9d256084a95ffda0 Mon Sep 17 00:00:00 2001 From: Nihaal Sangha Date: Wed, 21 Aug 2024 20:30:48 +0100 Subject: [PATCH] Add `rustls-tls` feature --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f9bb33..536545b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ authors = ["Emka877"] [dependencies] tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"] } -reqwest = { version = "0.12.4", features = ["json", "blocking", "multipart"] } +reqwest = { version = "0.12.4", features = ["json", "blocking", "multipart"], default-features = false } serde = { version = "1.0.198", features = ["derive"] } [dev-dependencies] @@ -27,7 +27,9 @@ serde_json = "1.0.116" ron = "0.9.0-alpha.0" [features] -default = [] +default = ["default-tls"] +default-tls = ["reqwest/default-tls"] +rustls-tls = ["reqwest/rustls-tls"] [[example]] name = "usage"