Merge pull request #790 from Andlon/compile_error_for_missing_test_features

Fail test compilation if mandatory features are missing
This commit is contained in:
Sébastien Crozet 2020-11-16 14:27:16 +01:00 committed by GitHub
commit e6d5888903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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.
Example: `cargo test --features debug --features compare`"
);
#[cfg(feature = "abomonation-serialize")]
extern crate abomonation;
#[macro_use]