tokio-xmpp: allow docs build with --all-features

This affects only the docs and is quite an ugly hack, but seems to be
the only way for now.
This commit is contained in:
Jonas Schäfer 2024-04-20 21:22:25 +02:00
commit 0298caf97a
2 changed files with 7 additions and 2 deletions

View file

@ -2,7 +2,12 @@
#![deny(unsafe_code, missing_docs, bare_trait_objects)]
#[cfg(all(feature = "tls-native", feature = "tls-rust"))]
#[cfg(all(
not(xmpprs_doc_build),
not(doc),
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(