From f01cfbf834c188ef2ef9f8f64ad0bea2614e0864 Mon Sep 17 00:00:00 2001 From: Valdemar Erk Date: Wed, 1 Dec 2021 20:34:28 +0100 Subject: [PATCH] Correct feature selection for connect_async_tls_with_config --- src/connect.rs | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connect.rs b/src/connect.rs index ff6a8c3c..45951164 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -9,7 +9,7 @@ use tungstenite::{ use crate::{domain, stream::MaybeTlsStream, IntoClientRequest, WebSocketStream}; -#[cfg(any(feature = "native-tls", feature = "rustls-tls"))] +#[cfg(any(feature = "native-tls", feature = "__rustls-tls"))] use crate::Connector; /// Connect to a given URL. @@ -54,7 +54,7 @@ where /// The same as `connect_async()` but the one can specify a websocket configuration, /// and a TLS connector to use. /// Please refer to `connect_async()` for more details. -#[cfg(any(feature = "native-tls", feature = "rustls-tls"))] +#[cfg(any(feature = "native-tls", feature = "__rustls-tls"))] pub async fn connect_async_tls_with_config( request: R, config: Option, diff --git a/src/lib.rs b/src/lib.rs index 35d4777e..dabff290 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ pub use tls::{client_async_tls, client_async_tls_with_config}; #[cfg(feature = "connect")] pub use connect::{connect_async, connect_async_with_config}; -#[cfg(all(any(feature = "native-tls", feature = "rustls-tls"), feature = "connect"))] +#[cfg(all(any(feature = "native-tls", feature = "__rustls-tls"), feature = "connect"))] pub use connect::connect_async_tls_with_config; #[cfg(feature = "stream")]