version_spec 0.10.3

A specification for working with partial, full, or aliased versions. Supports semver and calver.
Documentation
#[derive(thiserror::Error, Debug)]
pub enum SpecError {
    #[error("Invalid calver (calendar version) format.")]
    InvalidCalverFormat,

    #[error("Requirement operator found in an invalid position.")]
    InvalidParseRequirement,

    #[error("Invalid calver year, must be a number.")]
    InvalidYear,

    #[error("Missing major number for semantic versions, or year for calendar versions.")]
    MissingParseMajorPart,

    #[error("Unknown version format `{0}`. Must be a semantic or calendar based format.")]
    UnknownResolvedFormat(String),

    #[error("Unknown character `{0}` in version string!")]
    UnknownParseChar(char),

    #[error(transparent)]
    Semver(#[from] semver::Error),
}