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"))]
|
#[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.");
|
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 starttls;
|
||||||
mod stream_start;
|
mod stream_start;
|
||||||
mod xmpp_codec;
|
mod xmpp_codec;
|
||||||
|
|
Loading…
Reference in a new issue