1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[cfg(not(debug_assertions))] #[macro_use] extern crate human_panic; fn main() { // Human Panic. Only enabled when *not* debugging. #[cfg(not(debug_assertions))] { setup_panic!(); } // Setup Logging // log::setup_logging()?; }