Crates.io | setver |
lib.rs | setver |
version | 0.3.0 |
source | src |
created_at | 2022-05-18 12:18:17.42146 |
updated_at | 2022-10-02 21:53:09.325695 |
description | SetVer versioning scheme implementation in Rust |
homepage | |
repository | https://github.com/kleinesfilmroellchen/rust-setver |
max_upload_size | |
id | 588918 |
size | 17,737 |
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.
use setver::SetVersion;
let first_version: SetVersion = "{}".parse().unwrap();
let second_version: SetVersion = "{{}}".parse().unwrap();
assert!(first_version.is_subset(&second_version));
Add it to your project with Cargo:
cargo add setver
Read the documentation for more information about how to use setver.
Initial release.
Add the add_child_version
function which allows for easier building of related SetVers.
Only MIT right now, I can't be bothered with Apache at the moment.