Skip to content

semver: ignore build metadata #12438

Description

@omasanori

To provide strict total ordering for semver::Version, build metadata must be ignored for equality. Which way is preferred?

  • Preserve build metadata in Version but equality checking ignores it.
    • Most of behaviors are preserved.
  • Remove build metadata field from Version and the parser ignores it.
    • format!("{}", parse("1.0.0+build.1").unwrap()) == "1.0.0"

cc #12435

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions