1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
extern crate rand; // for logging (debug mostly, switched at compile time in cargo.toml) #[macro_use] extern crate lazy_static; pub mod probminhasher; pub mod superminhasher; pub mod invhash; pub mod nohasher; // hashing stuff lazy_static! { #[allow(dead_code)] pub static ref LOG: u64 = { let res = init_log(); res }; } // install a logger facility // set RUST_LOG to trace, warn debug off .... fn init_log() -> u64 { env_logger::Builder::from_default_env().init(); println!("\n ************** initializing logger from env *****************\n"); return 1; }