1 2 3 4 5 6 7 8
extern crate autocfg; fn main() { let mut ac = autocfg::new(); ac.set_no_std(true); ac.emit_expression_cfg("const { _ = &mut (); }", "has_const_mut"); ac.emit_path_cfg("::core::error::Error", "has_core_error"); }