Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo version range ( prerelease , build ) #111

Open
ziadhany opened this issue Apr 12, 2023 · 0 comments
Open

Cargo version range ( prerelease , build ) #111

ziadhany opened this issue Apr 12, 2023 · 0 comments

Comments

@ziadhany
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant