From 1ff8f7ba3262099ee00ac5f4b87f4c54699f207d Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Fri, 7 Jun 2024 13:47:56 +0900 Subject: [PATCH] fix: add rustls-platform-verifier flag for importing ConfigBuilderExt --- src/connector/builder.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/connector/builder.rs b/src/connector/builder.rs index e0b78fc..b2858b9 100644 --- a/src/connector/builder.rs +++ b/src/connector/builder.rs @@ -6,7 +6,11 @@ use rustls::crypto::CryptoProvider; use rustls::ClientConfig; use super::{DefaultServerNameResolver, HttpsConnector, ResolveServerName}; -#[cfg(any(feature = "rustls-native-certs", feature = "webpki-roots"))] +#[cfg(any( + feature = "rustls-native-certs", + feature = "webpki-roots", + feature = "rustls-platform-verifier" +))] use crate::config::ConfigBuilderExt; use pki_types::ServerName;