Packages / rupm

semver-tools 0.1.0

Parse and compare semantic versions, match ranges like ^1.2 and bump

Install

cargo add semver-tools --registry rupm

In Ruststudio: Packages, search for semver-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# semver-tools

Parse and compare semantic versions, match ranges like ^1.2 and bump

Add it with `rupm add semver-tools` (or `cargo add semver-tools --registry rupm`).

```rust
let v = semver_tools::Version::parse("1.2.3")?;
let r = semver_tools::Range::parse("^1.2, <2.0.0")?;
assert!(r.matches(&v));
assert_eq!(v.bump_minor()?.to_string(), "1.3.0");
```