Skip to main content

std_or_benchmarks_enabled

Macro std_or_benchmarks_enabled 

Source
macro_rules! std_or_benchmarks_enabled {
    ($($input:tt)*) => { ... };
}
Expand description

Enable/disable the given code depending on any(feature = "std", feature = "runtime-benchmarks") being enabled for the crate or not.

ยงExample

// Will add the code depending on the feature being enabled or not.
std_or_benchmarks_enabled!( println!("Hello") )