-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove accidental cargo knowledge from CrateGraph
deduplication
#16170
Comments
CrateGraph
deduplication
@rustbot claim |
So what has been bugging me with this issue is
How can I ever make queries like "Get me all the dev-dependencies on this |
(repeating from dms) Idea would be to have |
On a related note, |
.., but I would say this is a significant architectural bug.
By design, this layer of rust-analyzer knows nothing about cargo specific concepts. dev-vs-build-vs normal is 100% Cargo concept.
rustc
knows nothing about these words. As such, any special handling of these concepts should happen inworkspace.rs
, not here.The motivation for this design is two-fold:
-dev
as a concept applies to a package), there are only units of compilation.Originally posted by @matklad in #15754 (comment)
The text was updated successfully, but these errors were encountered: