diff --git a/tokio-xmpp/ChangeLog b/tokio-xmpp/ChangeLog index a6e0dc1651a49baf3336582b811eecd0646be822..5d3675e38ff429ee9fbb65e47ee585c6d3c3628d 100644 --- a/tokio-xmpp/ChangeLog +++ b/tokio-xmpp/ChangeLog @@ -50,6 +50,7 @@ XXXX-YY-ZZ RELEASER - Update rxml dependency to 0.13. - Remove warnings for elided lifetimes (rustc 1.90) - Use thiserror for the error types. (!616) + - Remove warning when 'rustls-any-backend' feature isn't enabled Version 4.0.0: 2024-07-26 Maxime “pep” Buquet diff --git a/tokio-xmpp/src/connect/tls_common.rs b/tokio-xmpp/src/connect/tls_common.rs index a73c8a6fcbda852b1b43c9ae6e56248095f84126..92cfb466f68fdd1f99539758a68f3ba228619cc7 100644 --- a/tokio-xmpp/src/connect/tls_common.rs +++ b/tokio-xmpp/src/connect/tls_common.rs @@ -7,6 +7,7 @@ //! Common TLS functionality shared between direct_tls and starttls modules use core::{error::Error as StdError, fmt}; +#[cfg(all(feature = "rustls-any-backend", not(feature = "native-tls")))] use std::os::fd::AsRawFd; use tokio::io::{AsyncRead, AsyncWrite};