Macro cfg_rust_features::emit
source · macro_rules! emit { ($features_names:expr) => { ... }; }
Expand description
Helper that does the common basic use of this crate. Suitable as the body of the main
function of a build script.
Calls CfgRustFeatures::emit_multiple
on a temporary instance with the given features’
names. Also calls emit_rerun_if_changed_file
with the name of the file in which this
macro was invoked.
§Examples
A build.rs
can be as simple as:
fn main() {
cfg_rust_features::emit!(["iter_zip"]).unwrap();
}