X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=lightning%2Fsrc%2Flib.rs;h=0cea7ad5de6f247ff208e54b782d426e4a514e52;hb=4b9df8f696d30c277104728231f17d52ff14c939;hp=431caa6080106cd43064a4979ffbff1643194885;hpb=4909d3cd6a05dfcba39fe08e6d8f539944c8ef66;p=rust-lightning diff --git a/lightning/src/lib.rs b/lightning/src/lib.rs index 431caa60..0cea7ad5 100644 --- a/lightning/src/lib.rs +++ b/lightning/src/lib.rs @@ -19,11 +19,18 @@ #![allow(ellipsis_inclusive_range_patterns)] extern crate bitcoin; -extern crate secp256k1; #[cfg(test)] extern crate rand; #[cfg(test)] extern crate hex; +#[cfg(all(test, feature = "mutation_testing"))] extern crate mutagen; #[macro_use] pub mod util; 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!";