Add a compiler error giving an actual reason if invalid features are active
This commit is contained in:
parent
9feb555b20
commit
23c5141dd0
|
@ -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…
Reference in a new issue