Use platform certificates when target "native-certs" is set

This is useful in Entreprise configurations.
This commit is contained in:
Nicolas Viennot
2020-04-04 18:03:06 +00:00
committed by Martin Algesten
parent 652500f5a8
commit 31ae90e614
2 changed files with 14 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ default = ["tls", "cookies"]
json = ["serde_json"]
charset = ["encoding"]
tls = ["rustls", "webpki", "webpki-roots"]
native-certs = ["rustls-native-certs"]
cookies = ["cookie"]
[dependencies]
@@ -30,5 +31,6 @@ url = "2"
rustls = { version = "0.17", optional = true, features = [] }
webpki = { version = "0.21", optional = true }
webpki-roots = { version = "0.19", optional = true }
rustls-native-certs = { version = "0.3", optional = true }
serde_json = { version = "1", optional = true }
encoding = { version = "0.2", optional = true }