version-number 0.4.0

Two and three component 'major.minor' and 'major.minor.patch' version number parsing
Documentation
1
2
3
4
5
6
7
8
use version_number::Version;

fn main() {
    // Additional labels such as build flags are not supported!
    let err = Version::parse("1.0.0-alpha").unwrap_err();

    eprintln!("{err}"); // prints: Expected end of input, but got '-' at 5.
}