Skip to content

Commit

Permalink
guard more import items with cfg features
Browse files Browse the repository at this point in the history
  • Loading branch information
stevefan1999-personal committed Nov 17, 2023
1 parent 847817a commit f0bb165
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use rustls::client::WantsClientCert;
use rustls::{ClientConfig, ConfigBuilder, WantsVerifier};

#[cfg(any(feature = "rustls-native-certs", feature = "webpki-roots"))]
use rustls::client::WantsClientCert;

/// Methods for configuring roots
///
/// This adds methods (gated by crate features) for easily configuring
Expand Down
2 changes: 2 additions & 0 deletions src/connector/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use crate::config::ConfigBuilderExt;

#[cfg(feature = "tokio-runtime")]
use hyper::client::HttpConnector;

#[cfg(any(feature = "rustls-native-certs", feature = "webpki-roots"))]
use rustls::crypto::CryptoProvider;

/// A builder for an [`HttpsConnector`]
Expand Down

0 comments on commit f0bb165

Please sign in to comment.