| Crates.io | utils-box-versions |
| lib.rs | utils-box-versions |
| version | 1.0.1 |
| created_at | 2025-11-03 08:52:15.678385+00 |
| updated_at | 2025-11-03 08:52:15.678385+00 |
| description | A toolbox of various small RUST utilities that make working with semantic versioning easier |
| homepage | |
| repository | https://github.com/klispap/utils-box |
| max_upload_size | |
| id | 1914261 |
| size | 27,964 |
A toolbox library that holds a useful collection of small unitilies written in Rust that make our life easier when writting Rust applications.
version parser from strings using the semver.org notations
Mininal Example:
let version = "0.9.2-1e341234";
let mut expected = Version::new(0, 9, 2);
expected.pre = Prerelease::new("1e341234").unwrap();
assert_eq!(semver_parse(version).unwrap(), expected);
Make sure you have the following system-level dependencies installed:
sudo apt install pkg-config build-essential fontconfig libfontconfig1-dev
Verify that pkg-config can detect libstdc++ properly:
pkg-config --libs libstdc++
If libstdc++ is not detected, add the symbolic link:
sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/11/libstdc++.so /usr/lib/libstdc++.so