-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cargo.toml dependencies: avoid caret requirements #13307
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
Comments
IMHO, this lint is a better fit in Cargo its own lint system: |
@weihanglo are you aware of any policy about what sould go there and what in clippy? |
From @flip1995's last comment
Personally I look forward to the direction, though not sure if it was the decision. cc @Muscraft (diagnostics magician on t-cargo) |
@weihanglo thanks for the info! |
AFAIK, the only remaining task of stabilizing |
What it does
Hello,
It would be nice to have a lint that highlights the presence of dependencies having the version specified with a
^
(caret) in theCargo.toml
. For examplefoo="^1.2.3"
.As for Cargo docs:
Advantage
This lint helps in having a uniform
Cargo.toml
where simplified syntax and explicit carets are not mixed, following Cargo docs suggestion.Drawbacks
None I am aware of
Example
Could be written as:
The text was updated successfully, but these errors were encountered: