Skip to content

Commit

Permalink
fix: add rustls-platform-verifier flag for importing ConfigBuilderExt
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara authored and djc committed Jun 7, 2024
1 parent 0a20123 commit c56c76a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/connector/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c56c76a

Please sign in to comment.