mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
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:
parent
57517692ba
commit
079ca7dd90
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue