From 423aa8f05b30799129080e1bbe821ef067b50ed2 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Mon, 6 Jan 2025 20:39:41 +0100 Subject: [PATCH] Fix broken compilation without rustls --- .github/workflows/test.yml | 1 + src/unversioned/transport/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 38ccbd41..3f701c79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,6 +110,7 @@ jobs: - brotli - json - native-tls + - rustls-no-provider env: RUST_BACKTRACE: "1" RUSTFLAGS: "-D dead_code -D unused-variables -D unused" diff --git a/src/unversioned/transport/mod.rs b/src/unversioned/transport/mod.rs index ad014b2b..5c94dac5 100644 --- a/src/unversioned/transport/mod.rs +++ b/src/unversioned/transport/mod.rs @@ -59,7 +59,7 @@ pub use self::socks::SocksConnector; pub use crate::proxy::ConnectProxyConnector; -#[cfg(feature = "rustls")] +#[cfg(feature = "_rustls")] pub use crate::tls::rustls::RustlsConnector; #[cfg(feature = "native-tls")]