Expand description
Semantic Versioning (SemVer) implementation
A fast, correct implementation of the Semantic Versioning 2.0.0 specification. Supports version parsing, comparison, bumping, and range satisfaction.
Structs§
- Build
Metadata - Build metadata (e.g., “build.123”, “20230101”)
- Comparator
- A single version comparator
- Prerelease
- Pre-release identifier (e.g., “alpha”, “beta.1”, “rc.2”)
- Range
- A range of versions (comparators combined with AND)
- Version
- A semantic version number (MAJOR.MINOR.PATCH[-prerelease][+build])
- Version
Req - A version requirement (set of ranges combined with OR)
Enums§
- Op
- Comparison operator