Properly set up the reqwest tls features

This commit is contained in:
Thijs Molendijk 2021-07-04 19:40:39 +02:00 committed by Mingwei Samuel
parent f182191680
commit 032d3ac97d

View file

@ -20,7 +20,11 @@ categories = [ "api-bindings", "web-programming::http-client" ]
features = [ "nightly" ] features = [ "nightly" ]
[features] [features]
default = [ "default-tls" ]
nightly = [ "parking_lot/nightly" ] nightly = [ "parking_lot/nightly" ]
default-tls = [ "reqwest/default-tls" ]
native-tls = [ "reqwest/native-tls" ] native-tls = [ "reqwest/native-tls" ]
rustls-tls = [ "reqwest/rustls-tls" ] rustls-tls = [ "reqwest/rustls-tls" ]
@ -29,7 +33,7 @@ lazy_static = "1.4"
log = "0.4" log = "0.4"
num_enum = "0.5" num_enum = "0.5"
parking_lot = "0.11" parking_lot = "0.11"
reqwest = { version = "0.11", features = [ "gzip", "json" ] } reqwest = { version = "0.11", default-features = false, features = [ "gzip", "json" ] }
scan_fmt = { version = "0.2", default-features = false } scan_fmt = { version = "0.2", default-features = false }
serde = { version = "1.0", features = [ "derive" ] } serde = { version = "1.0", features = [ "derive" ] }
serde_json = "1.0" serde_json = "1.0"