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
use version_number::BaseVersion;

fn main() {
    let full_version = BaseVersion::parse("1.2").expect("Unable to parse!");

    assert_eq!(full_version, BaseVersion::new(1, 2));
}