uapi-version
Compare versions according to the UAPI Version Format Specification.
This library is written purely in Rust and does not rely on any third party
dependencies. It is #![no_std] and can thus, for example, also be used for
UEFI development.
Uses the same test suite that systemd uses to test their
strverscmp_improved() function.
Any deviation from the UAPI specification is a bug. Please report it if you find one!
Usage
Add uapi-version to your Cargo.toml:
You can compare two versions:
use Ordering;
use Version;
You can sort a list of versions:
use Version;
You can also compare version strings directly:
use Ordering;
use strverscmp;