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
#![allow(clippy::single_component_path_imports)] mod argstr; mod fnv; mod graph; mod id; pub use self::fnv::Key; pub(crate) use self::{argstr::ArgStr, graph::ChildGraph, id::Id}; pub(crate) use vec_map::VecMap; #[cfg(feature = "color")] pub(crate) use termcolor; #[cfg(not(feature = "color"))] pub(crate) mod termcolor; pub(crate) fn safe_exit(code: i32) -> ! { use std::io::Write; let _ = std::io::stdout().lock().flush(); let _ = std::io::stderr().lock().flush(); std::process::exit(code) }