dewey
dewey
is a simple version parser and comperator that aims to be compatible
to NetBSD and xbps'
comperator implementation.
dewey
not only parses .
-seperated versions but other common patterns such
as X.XalphaX
, X.XrcX
, and X.X.Xpl1
example
let stable = from_str;
let pre = from_str
let pl = from_str
assert!;
assert!;
assert!;
supported seperators
- Revision: example:
1.0_1
- Alpha:
0.0alpha1
- Beta:
0.0beta1
- Pre:
0.0pre1
- Rc:
0.0rc1
- PatchLevel:
0.0pl1
- Dot:
1.0