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 check also checks path depencies #124851
Comments
|
But it's also not excludable via Also the path I specified is not "residing in the workspace directory" right? Because it starts with |
Workspaces are irrelevant here; what's going on is that Cargo only suppresses warnings from registry/git dependencies. I couldn't quickly find a good canonical documentation of this behavior, but:
— https://doc.rust-lang.org/cargo/reference/manifest.html#the-lints-section I believe the rationale is that if you are using a If your goal is to depend on code that hasn't been published to |
But then why does |
If I follow your meaning right, then yes — |
Okay, so this is working as expected and should be closed? |
Documentation for package selections (incl. Since ehuss and kpreid explained the behavior pretty well, if no objection I lean toward closing this. |
I have a workspace with multiple crates that depends on another set of crates via path dependencies
The
<project root>/fuzzer/Cargo.toml
looks like this:When I run
cargo check
I expect to only get warnings for my workspace members, however my output is flooded with warnings from the library like this:Meta
rustc --version --verbose
:I'm sorry that this is not a minimal example. If you have trouble reproducing it, I will attempt to reduce it and publish that as a repo.
The text was updated successfully, but these errors were encountered: