macro_rules! crate_name {
    () => { ... };
}
Expand description

Allows you to pull the name from your Cargo.toml at compile time.

Examples

let m = Command::new(crate_name!())
            .get_matches();