From 8b029baa8dd65e513b7ae4264ae472596c9e2f4c Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Wed, 14 Jul 2021 00:21:37 +0900 Subject: [PATCH] Fix wrong feature name when setting certs --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 6b9c21c..04ce540 100644 --- a/src/client.rs +++ b/src/client.rs @@ -76,12 +76,12 @@ mod encryption { let config = { #[allow(unused_mut)] let mut config = ClientConfig::new(); - #[cfg(feature = "rustls-native-roots")] + #[cfg(feature = "rustls-tls-native-roots")] { config.root_store = rustls_native_certs::load_native_certs().map_err(|(_, err)| err)?; } - #[cfg(feature = "rustls-webpki-roots")] + #[cfg(feature = "rustls-tls-webpki-roots")] { config.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS); }