From 54de8d9951721d9380e716e8abb134600070f6b8 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 3 Jan 2024 20:01:05 -0500 Subject: [PATCH] Fix building xmpp with no-default-features --- xmpp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index 95cac93..780fe4e 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -35,7 +35,7 @@ pub type Error = tokio_xmpp::Error; pub type Id = Option; pub type RoomNick = String; -#[cfg(test)] +#[cfg(all(test, any(feature = "starttls-rust", feature = "starttls-native")))] mod tests { use super::{BareJid, ClientBuilder, ClientFeature, ClientType, Event}; use std::str::FromStr;