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

Update web-sys dependency to not allow v0.4 and above #684

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jplatte
Copy link

@jplatte jplatte commented Dec 20, 2024

This was added in #621 (comment), but I think the author misunderstood what this constraint means.

In Cargo, a version specification like 0.5.1 means >=0.5.1 <0.6.0 (like ^0.5.1 in NPM, it can also be written that way in Cargo if you want to be more explicit). A version specification like >=0.5.1 puts no upper bound, so even a breaking-change release like 0.7.x or 0.8.x would get selected.

This is documented in detail here: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-cratesio

cc @kflansburg

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

Successfully merging this pull request may close these issues.

1 participant