setver 0.3.0

SetVer versioning scheme implementation in Rust
Documentation
  • Coverage
  • 90%
    18 out of 20 items documented1 out of 12 items with examples
  • Size
  • Source code size: 17.73 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 488.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kleinesfilmroellchen

rust-setver

SetVer implementation for Rust.

This is the setver crate which allows your Rust application or library to comprehend SetVer version specifications. SetVer is a versioning scheme created by Olivia Palmu and based on set theory concepts. It is fantastically simple and powerful, yet entirely unpractical. See the SetVer repository above if you want to learn more.

Example

use setver::SetVersion;
let first_version: SetVersion = "{}".parse().unwrap();
let second_version: SetVersion = "{{}}".parse().unwrap();
assert!(first_version.is_subset(&second_version));

Installation & Usage

Add it to your project with Cargo:

cargo add setver

Read the documentation for more information about how to use setver.

Changelog

0.1.0

Initial release.

0.2.0

Add the add_child_version function which allows for easier building of related SetVers.

License

Only MIT right now, I can't be bothered with Apache at the moment.