tokio-xmpp: Also compile_error when no tls-* feature is enabled

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-10-24 19:58:59 +02:00
parent 57517692ba
commit 079ca7dd90

View file

@ -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;