utils-box-versions 1.0.1

A toolbox of various small RUST utilities that make working with semantic versioning easier
Documentation

Coverage Status

Summary

A toolbox library that holds a useful collection of small unitilies written in Rust that make our life easier when writting Rust applications.

Utilities provided:

Versions

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);

Tips for resolving Ubuntu 22.04/24.04 build issues:

  1. Make sure you have the following system-level dependencies installed:

    sudo apt install pkg-config build-essential fontconfig libfontconfig1-dev
    
  2. Verify that pkg-config can detect libstdc++ properly:

    pkg-config --libs libstdc++
    
  3. 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