rust-ape-example/src/bin/attribute_cfg_custom.rs
2022-09-07 11:36:05 +05:30

16 lines
198 B
Rust

// ./src/attribute/cfg/custom.md
/*
#[cfg(some_condition)]*/
fn conditional_function() {
println!("condition met!");
}
fn part0() {
conditional_function();
}
pub fn main() {
part0();
}