Fail test compilation if mandatory features are missing

This commit is contained in:
Andreas Longva 2020-11-12 11:50:32 +01:00
parent 737e67c555
commit a4fa3f9c1b

View File

@ -1,3 +1,9 @@
#[cfg(any(not(feature = "debug"), not(feature = "compare")))]
compile_error!(
"Please enable the `debug` and `compare` features \
in order to compile and run the tests."
);
#[cfg(feature = "abomonation-serialize")] #[cfg(feature = "abomonation-serialize")]
extern crate abomonation; extern crate abomonation;
#[macro_use] #[macro_use]