Add TLS server roots from webpki

This commit is contained in:
Paul Fariello 2021-02-15 20:45:58 +01:00 committed by Astro
commit 8d3c7a3bd6
2 changed files with 21 additions and 12 deletions

View file

@ -28,12 +28,13 @@ trust-dns-resolver = "0.20"
xml5ever = "0.16"
xmpp-parsers = "0.18"
webpki = { version = "0.21", optional = true }
webpki-roots = { version = "0.21", optional = true }
[build-dependencies]
rustc_version = "0.3"
[features]
default = ["tls-native"]
tls-rust = ["tokio-rustls", "webpki"]
tls-rust = ["tokio-rustls", "webpki", "webpki-roots"]
tls-native = ["tokio-native-tls", "native-tls"]
serde = ["xmpp-parsers/serde"]