Registry / Library

library · v0.1.0
VersionBand
Check membership of a numeric-version core in a half-open dependency interval.
Use VersionBand
use vendor::versionband::versionband;
Run the example
nest demo versionband@0.1.0
blyxc native-run versionband-demo/main.blyx
Example source and expected output
use vendor::versionband::versionband;
fn main() {
let version = [1, 2, 0];
let lower = [1, 2, 0];
let upper = [2, 0, 0];
let result = versionband_contains(version, lower, upper);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
1
0
0
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | df6b90227e | 58162d705b154740eeacc6ebb075daabc664d1d5eed4b6321bd91ec2cf8eeb88 |