Expand description

version-number

Synopsis

A crate to represent and parse two- and three-component version numbers of the form major.minor, and major.minor.patch respectively. These version numbers are often seen within the Rust project manifests

Semver compatibility

The version numbers accepted by this crate are mostly a subset of semver version numbers, with the exception of also allowing two component (shorthand) major.minor versions.

For example, 1.0 and 1.0.0 are both accepted by this library, while the former is rejected by semver.

In addition Version does not accept extra labels such as build parameters, which are an extension of the semver version number itself.

Structs

A two-component major.minor version.

A three-component major.minor.patch version.

Enums

Top level errors for version-numbers.

A numbered version which is a two-component major.minor version number, or a three-component major.minor.patch version number.