rust-lang / rust-lang/rust-clippy

Dependency can be Dev-Dependency

Open
#1,892 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.