This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-semver v0.1.0
mojo-semver v0.1.0
What it does
Semantic Versioning 2.0.0 for Mojo with the exact rules of Python semver 3.0: parse, precedence, match, bump.
Highlights
- Strict parser without a regex engine;
VersionderivesWritable. - Parse 42 ns and compare 9.4 ns, against 1,579 ns and 549 ns in Python semver.
Changes
- First release.
Verified
scripts/ci.shPASS on Mojo 1.2.0 and 1.3.0.dev2026110305: 4 scenarios byte-identical with Python semver 3.0.4 (each twice), 6/6 mutants.
Known limits
- Core numbers up to 18 digits. No caret/tilde ranges.
Upgrade / run
- Add
mojo-semver, thenfrom semver import parse. Tryexamples/quickstart.mojo.
Commits
- All commits up to tag
v0.1.0:git log v0.1.0.