Cargo version range ( prerelease , build )
ziadhany opened this issue · 1 comments
ziadhany commented
Wildcard:
let ref r = req("*");
assert_match_all(r, &["0.9.1", "2.9.0", "0.0.9", "1.0.1", "1.1.1"]);
assert_match_none(r, &["1.0.0-pre"]);
let ref r = req("1.*");
assert_match_all(r, &["1.2.0", "1.2.1", "1.1.1", "1.3.0"]);
assert_match_none(r, &["0.0.9", "1.2.0-pre"]);
https://github.com/dtolnay/semver/blob/master/tests/test_version_req.rs#L279
let ref r = req(">= 1.0.0");
assert_to_string(r, ">=1.0.0");
assert_match_all(r, &["1.0.0", "2.0.0"]);
assert_match_none(r, &["0.1.0", "0.0.1", "1.0.0-pre", "2.0.0-pre"]);
https://github.com/dtolnay/semver/blob/master/tests/test_version_req.rs#L79
How can we handle something like this in univers ?
pombredanne commented