Add a compiler error giving an actual reason if invalid features are active

docs
Emi Tatsuo 2 years ago
parent 9feb555b20
commit 23c5141dd0
Signed by: Emi
GPG Key ID: 68FAB2E2E6DFC98B

@ -1,5 +1,11 @@
#[macro_use] extern crate log;
#[cfg(all(feature = "gemini_srv", feature = "scgi_srv"))]
compile_error!("Please enable only one of either the `gemini_srv` or `scgi_srv` features on the kochab crate");
#[cfg(not(any(feature = "gemini_srv", feature = "scgi_srv")))]
compile_error!("Please enable at least one of either the `gemini_srv` or `scgi_srv` features on the kochab crate");
use std::{
sync::Arc,
time::Duration,

Loading…
Cancel
Save