Add warning for unused workspace dependency #13723
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-bug
Category: bug
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Problem
I have a workspace project with a database crate that uses diesel for sql stuff. All the dependencies are specified at workspace level. To make sure libsqlite3-sys is bundling sqlite3, i need to activate the "bundled" feature. Therefore I added it as transitive dependency in the workspace dependencies. The database crate didn't pick up this transitive dependency though, as long as i didn't add
libsqlite3-sys.workspace = true
to the database Cargo.toml.Steps
cargo tree -e features
cargo tree - features
shows that database crate is not using transitive libsqlite3-sys dependencyPossible Solution(s)
I think it would be helpful if cargo would report this as a warning.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: