Debug assertions



examples/other/debug-assertions/src/main.rs
fn main() {
    println!("Hello, world!");
    if cfg!(debug_assertions) {
        println!("debug_assertions");
    }
}

cargo run

cargo run --release