Allow switching to rustls TLS implementation

This commit is contained in:
Pro 2022-04-28 09:40:53 +02:00
parent 391ef67694
commit f6c0c4a2e6

View file

@ -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"]