Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kleinesfilmroellchen/rust-setver
SetVer implementation for Rust
https://github.com/kleinesfilmroellchen/rust-setver
Last synced: 25 days ago
JSON representation
SetVer implementation for Rust
- Host: GitHub
- URL: https://github.com/kleinesfilmroellchen/rust-setver
- Owner: kleinesfilmroellchen
- License: mit
- Created: 2022-05-16T12:46:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T21:56:00.000Z (about 2 years ago)
- Last Synced: 2024-10-06T02:41:05.033Z (about 1 month ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-setver
[SetVer](https://github.com/RocketRace/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
```rust
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:
```shell
cargo add setver
```Read the [documentation](https://docs.rs/setver/latest/setver/) 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.