Skip to content

About "invalid leading zero in pre-release identifier" #246

Closed
@dalance

Description

@dalance

#230 changed the behavior of Version::parse.
I agree "0.3.0-alpha.01" is invalid, but crates.io/Cargo allows the invalid version now.
So this changing causes the all index of crates.io can't be handled by semver crate.

I think the invalid version should be handled because semver crate says "Cargo's interpretation of Semantic Versioning".
For example, Version::parse allows the invalid version, and Version::parse_strict disallows.

What do you think?

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