Skip to content

PartialVersion parsing support #325

@Benjscho

Description

@Benjscho

Creating this issue to discuss about for PartialVersion parsing. Currently Version::parse only supports parsing full versions (i.e., with at least a major, minor, and a patch).

Would you be against adding support for PartialVersion parsing, e.g., in the same manner that Cargo handles partial versions? This would involve adding a new struct PartialVersion, that supports parsing incomplete versions, and implementing impl From<semver::PartialVersion> for Version

I'd be happy to submit a PR to add the struct & parsing if there's interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions