From 1d7b48cca3b0950f17d94bdf6e706e8ad71ee232 Mon Sep 17 00:00:00 2001 From: Vesa Vilhonen Date: Tue, 15 Dec 2020 21:21:09 +0200 Subject: [PATCH] Add rustls-tls feature to use rustls with reqwest --- cloudflare/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cloudflare/Cargo.toml b/cloudflare/Cargo.toml index 20a5898e..40176437 100644 --- a/cloudflare/Cargo.toml +++ b/cloudflare/Cargo.toml @@ -8,6 +8,11 @@ keywords = ["cloudflare", "api", "client"] categories = ["api-bindings", "web-programming::http-client"] license = "BSD-3-Clause" +[features] +default = ["default-tls"] +default-tls = ["reqwest/default-tls"] +rustls-tls = ["reqwest/rustls-tls"] + [dependencies] anyhow = "1.0" async-trait = "0.1" @@ -16,7 +21,7 @@ chrono = { version = "0.4", features = ["serde"] } cfg-if = "0.1" http = "0.2" percent-encoding = "1.0" -reqwest = { version = "0.11", features = ["json", "blocking"] } +reqwest = { version = "0.11", default-features = false, features = ["json", "blocking"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_qs = "0.4"