Skip to main content

## crate_version

# Macro crate_version

Source

    macro_rules! crate_version {
        () => { ... };
    }

Available on crate feature `cargo` only.
Expand description

Allows you to pull the version from your Cargo.toml at compile time as `MAJOR.MINOR.PATCH_PKGVERSION_PRE`

## §Examples

    let m = Command::new("cmd")
                .version(crate_version!())
                .get_matches();