summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriliana destroyer of worlds <iliana@buttslol.net>2019-08-31 18:41:32 -0700
committerPaul Woolcock <paul@woolcock.us>2019-09-03 14:54:27 -0400
commitf41253241e5c90121e8f4ca8dd4b45c13c02f8f3 (patch)
tree386e8fdb395e59c58b1abb848260f74ce807bd20
parent379d45c645153ce3075d0b2f35284111c5259b42 (diff)
Add feature flag for rustls
-rw-r--r--Cargo.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 474edcf..9e6127d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["web-programming", "web-programming::http-client", "api-bindings"]
[dependencies]
doc-comment = "0.3"
isolang = { version = "1.0", features = ["serde_serialize"] }
-reqwest = "0.9"
+reqwest = { version = "0.9", default-features = false }
serde = "1"
serde_derive = "1"
serde_json = "1"
@@ -31,10 +31,11 @@ version = "0.4"
features = ["serde"]
[features]
-default = []
+default = ["reqwest/default-tls"]
json = []
env = ["envy"]
all = ["toml", "json", "env"]
+rustls-tls = ["reqwest/rustls-tls"]
[build-dependencies]
skeptic = "0.13.3"