1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use std::sync::Once; #[macro_use] extern crate log; pub mod backend; pub mod compiler; pub mod rt; pub fn init_logger() { static ONCE: Once = Once::new(); ONCE.call_once(|| { env_logger::init(); }); }