From 1f6c62d301fe412e2e3024434d058179d80294ed Mon Sep 17 00:00:00 2001 From: Martin Lemesle Date: Fri, 7 Apr 2023 10:11:53 +0200 Subject: [PATCH] Fix not compiling features rustls-tls-native-roots and rustls-tls-webpki-roots --- Cargo.toml | 1 + src/tls.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d0825c33..4251257d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ version = "0.6.0" [dependencies.webpki] optional = true version = "0.22" +features = ["std"] [dependencies.webpki-roots] optional = true diff --git a/src/tls.rs b/src/tls.rs index ad54de3c..0bca333e 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -107,7 +107,7 @@ mod encryption { for cert in rustls_native_certs::load_native_certs()? { root_store .add(&rustls::Certificate(cert.0)) - .map_err(TlsError::Webpki)?; + .map_err(TlsError::Rustls)?; } } #[cfg(feature = "rustls-tls-webpki-roots")]