From 079ca7dd9083085ece343415119f3f22387183d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 24 Oct 2023 19:58:59 +0200 Subject: [PATCH] tokio-xmpp: Also compile_error when no tls-* feature is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- tokio-xmpp/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tokio-xmpp/src/lib.rs b/tokio-xmpp/src/lib.rs index 214b6f6b..14889711 100644 --- a/tokio-xmpp/src/lib.rs +++ b/tokio-xmpp/src/lib.rs @@ -5,6 +5,9 @@ #[cfg(all(feature = "tls-native", feature = "tls-rust"))] compile_error!("Both tls-native and tls-rust features can't be enabled at the same time."); +#[cfg(all(not(feature = "tls-native"), not(feature = "tls-rust")))] +compile_error!("One of tls-native and tls-rust features must be enabled."); + mod starttls; mod stream_start; mod xmpp_codec;