referrerpolicy=no-referrer-when-downgrade

Macro frame_support::try_runtime_or_std_enabled

source ·
macro_rules! try_runtime_or_std_enabled {
    ($($input:tt)*) => { ... };
}
Expand description

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

§Example

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