const_version

Macro const_version 

Source
const_version!() { /* proc-macro */ }
Expand description

Allows compile time generation of Versions from string literals.

const VERSION: Version = const_version!("1.2.3");

assert_eq!(VERSION.major, 1);
assert_eq!(VERSION.minor, 2);
assert_eq!(VERSION.patch, 3);