# semver (Rust)

> Parser and evaluator for Cargo's flavor of Semantic Versioning

Source: https://talira.ai/catalog/semver-rust-k4xms0fh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / semantic versioning](https://talira.ai/categories/libraries/semantic-versioning), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^1][^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [David Tolnay](https://talira.ai/orgs/dtolnay.md)

semver is David Tolnay's Rust crate for parsing and comparing version numbers the way Cargo does. It parses versions with pre-release and build metadata, parses requirements such as >=1.2.3, <1.8.0, and checks whether a version matches a requirement. Where tools differ in how they read the Semantic Versioning spec, it follows Cargo's choices, so it's meant for Cargo and crates.io versions rather than npm's or RubyGems'. Not the same as the npm package [semver](https://talira.ai/catalog/semver-gyz2etga.md).

## Links

- GitHub: https://github.com/dtolnay/semver
- Docs: https://docs.rs/semver

## Problems it solves

- parse and compare semantic version numbers in Rust
- check whether a crate version satisfies a Cargo version requirement
- sort release versions with pre-release tags in Rust

## Features

- parse versions with pre-release and build metadata
- parse version requirements like >=1.2.3, <1.8.0
- check whether a version matches a requirement
- follows Cargo's interpretation of SemVer

## Limitations

- Follows Cargo's interpretation of SemVer; for versions from other ecosystems (npm, RubyGems, Composer) its README recommends a library made for that ecosystem.[^1]

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.27, adoption 0.57, momentum 0.22, community 0.74, backing 0.30, extensibility 0.00.

- latest release 1.0.28 8 months ago
- 678 GitHub stars
- 69 contributors
- accepts sponsorship (Github)
- backed by David Tolnay

Warnings:

- last commit 5 months ago

## Sources

[^1]: https://github.com/dtolnay/semver/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/dtolnay/semver/blob/master/LICENSE-MIT (checked 28 Nov 2026)
[^3]: https://github.com/dtolnay/semver/blob/master/LICENSE-APACHE (checked 28 Nov 2026)
