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

Is there a reason winit uses image = "0.20.1" rather than image = "~0.20.1"? #707

Closed
icefoxen opened this issue Nov 14, 2018 · 2 comments
Closed

Comments

@icefoxen
Copy link
Contributor

The latter would allow image 0.20.2, etc to be used in case there's ever dependency updates. ^0.20.1 would do the same, I think.

ggez habitually just specifies image 0.20 or whatever, so I'm already having nightmares of a user pulling a hypothetical image 0.20.2 and ggez mysteriously failing to build because of it. Specifying ggez to use image 0.20.1 precisely is the simple solution, was just wondering if we could do better.

Thanks!

@elinorbgr
Copy link
Contributor

From the cargo reference manual specifying a dependency without any symbol prefix, as "x.y.z" is equivalent to "^x.y.z".

As such running cargo update should be enough to grab a newer semver-commpatible version of image.

@icefoxen
Copy link
Contributor Author

icefoxen commented Nov 14, 2018

...shoot, I keep forgetting that and thinking that when it's fully specified it's the same as "=x.y.z"

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

No branches or pull requests

2 participants