Skip to content

Commit

Permalink
Add rustls-tls feature to use rustls with reqwest
Browse files Browse the repository at this point in the history
  • Loading branch information
vvilhonen authored and sssilver committed Feb 7, 2021
1 parent 55e2b24 commit 1d7b48c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cloudflare/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 1d7b48c

Please sign in to comment.