rust-lang / rust-lang/rust-clippy
Dependency can be Dev-Dependency
Open
Nobody has claimed this yet.
E-medium
L-unnecessary
T-cargo
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Warn when Cargo.toml has an entry under [dependencies] which is not used via extern crate. It could belong under [dev-dependencies] if it's used in tests, or outright removed if it's not used at all.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the dependency declarations described in Cargo.toml and inspecting how existing Clippy lints are organized. No source file or test is named in the issue. Done means the lint identifies dependencies used only by tests or not used at all and reports the appropriate dependency placement or removal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100