Constant RUST_LOG_STYLE

Source
pub(crate) const RUST_LOG_STYLE: &str = "RUST_LOG_STYLE";
Expand description

Our custom rustc driver will not be run in an proper terminal, thus logs would appear uncolored. When no RUST_LOG_STYLE env. var. is set, rust_log_style checks wether the cargo hax command was run inside a terminal. If it was inside a terminal, rust_log_style returns "always", which is the usual default behavior. Otherwise we return "never". When RUST_LOG_STYLE is set, we just return its value.