/// Get version in format 3AAABBBCCC, where A B and C are major, minor and patch
/// versions of node. `tox-bootstrapd` uses similar scheme but with leading 1.
/// Before it used format YYYYMMDDVV so the leading numeral was 2. To make a
/// difference with these schemes we use 3.
Get version in format 3AAABBBCCC, where A B and C are major, minor and patch
versions of node. `tox-bootstrapd` uses similar scheme but with leading 1.
Before it used format YYYYMMDDVV so the leading numeral was 2. To make a
difference with these schemes we use 3.
Get version in format 3AAABBBCCC where A B and C are major minor and patch versions of node . ` tox - bootstrapd ` uses similar scheme but with leading 1 . Before it used format YYYYMMDDVV so the leading numeral was 2 . To make a difference with these schemes we use 3 .
fn version() -> u32 {
    let major: u32 = env!("CARGO_PKG_VERSION_MAJOR").parse().expect("Invalid major version");
    let minor: u32 = env!("CARGO_PKG_VERSION_MINOR").parse().expect("Invalid minor version");
    let patch: u32 = env!("CARGO_PKG_VERSION_PATCH").parse().expect("Invalid patch version");
    assert!(major < 1000, "Invalid major version");
    assert!(minor < 1000, "Invalid minor version");
    assert!(patch < 1000, "Invalid patch version");
    3_000_000_000 + major * 1_000_000 + minor * 1000 + patch
}
fn version ( ) -> u32 { let major : u32 = env ! ( " " ) . parse ( ) . expect ( " " ) ; let minor : u32 = env ! ( " " ) . parse ( ) . expect ( " " ) ; let patch : u32 = env ! ( " " ) . parse ( ) . expect ( " " ) ; assert ! ( major 1000 " " ) ; assert ! ( minor 1000 " " ) ; assert ! ( patch 1000 " " ) ; 3_000_000_000 + major * 1_000_000 + minor * 1000 + patch }
Get version in format 3AAABBBCCC, where A B and C are major, minor and patch
versions of node.
Get version in format 3AAABBBCCC where A B and C are major minor and patch versions of node .