From f6c0c4a2e6d546f3fd88f8c883f7a7da8c2db799 Mon Sep 17 00:00:00 2001 From: Pro Date: Thu, 28 Apr 2022 09:40:53 +0200 Subject: [PATCH] Allow switching to rustls TLS implementation --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 57be276..c269a33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ edition = "2021" [dependencies] -reqwest = { version = "0.11.10", features = ["json"] } +reqwest = { version = "0.11.10", default-features = false, features = ["json"] } serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" serde_with = "1.13.0" @@ -30,3 +30,7 @@ tokio = { version = "1.17.0", features = ["macros", "rt-multi-thread"] } dotenv = "0.15.0" anyhow = "1.0.57" color-eyre = "0.6.1" + +[features] +default = ["reqwest/native-tls"] +rustls = ["reqwest/rustls-tls"]