X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=rust-lightning;a=blobdiff_plain;f=lightning%2Fsrc%2Flib.rs;h=0cea7ad5de6f247ff208e54b782d426e4a514e52;hp=23645ab189aec1c06de223a6a6cad88f1eeceaac;hb=c8b51228d6c7012659aa4b4a37591dc27222937c;hpb=795abb8740eff6decf1e6635b9467373a7e5e0d0 diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 23645ab1..0cea7ad5 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -21,6 +21,7 @@ extern crate bitcoin; #[cfg(test)] extern crate rand; #[cfg(test)] extern crate hex; +#[cfg(all(test, feature = "mutation_testing"))] extern crate mutagen; #[macro_use] pub mod util; @@ -28,3 +29,8 @@ pub mod chain; pub mod ln; pub mod routing; +#[cfg(all( + any(feature = "mutation_testing", feature = "fuzztarget"), + not(any(test, debug_assertions)) + ))] +const ERR: () = "You should never be building with feature = mutation_testing or feature = fuzztarget! They are used to compile with broken code for testing only!";