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
9
10
11
use version_number::{BaseVersion, FullVersion};

fn main() {
    let original_base = BaseVersion::new(1, 2);

    let converted_full = original_base.to_full_version_lossy();
    assert_eq!(converted_full, FullVersion::new(1, 2, 0));

    let converted_base = converted_full.to_base_version_lossy();
    assert_eq!(converted_base, BaseVersion::new(1, 2));
}