version_tuple

Macro version_tuple 

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

version_tuple! is a macro that returns the version of the crate as a tuple of three u16 integers: (major, minor, patch).

ยงExamples

use this_crate::version_tuple;
let (major, minor, patch) = version_tuple!();
println!("The version is: {}.{}.{}", major, minor, patch);