Module version
Version information
The information is recovered from Cargo.toml and git describe, when available.
use version;
use Version;
let major = major;
let minor = minor;
let patch = patch;
let short = short;
let v1 = new;
let v2 = parse.unwrap;
assert_eq!;
Functions
-
full
Version information with the information
provided by
git describe --tags. - hash Commit hash (short)
-
long
Version information as presented in
[package] versionfollowed by the short commit hash if present. - major Major version component
- minor Minor version component
- patch Patch version component
-
short
Version information as presented in
[package]version.