Add native-tls/openssl tls backend for linux

This commit is contained in:
bytedream 2023-07-17 16:08:54 +02:00
parent 566422cb06
commit 4ec9a0d309
3 changed files with 207 additions and 1 deletions

View file

@ -30,5 +30,11 @@ tempfile = "3.6"
tokio = { version = "1.29", features = ["macros", "rt-multi-thread", "time"] }
sys-locale = "0.3"
[target.'cfg(target_os = "linux")'.dependencies]
reqwest = { version = "0.11", default-features = false, features = ["socks", "native-tls-alpn", "native-tls-vendored"] }
[target.'cfg(not(target_os = "linux"))'.dependencies]
reqwest = { version = "0.11", default-features = false, features = ["socks"] }
[build-dependencies]
chrono = "0.4"