rust-lang / rust-lang/rust-clippy

Detect dependencies that are in Cargo.toml but not used in the crate

Open
#3,644 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-lint T-cargo
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

idea from https://twitter.com/eddyb_r/status/1082458713640841221

Basically detect discrepancies between the --extern flags and everything being loaded by the current crate via extern crate or implicitly in Rust 2018

related: https://github.com/rust-lang/rust-clippy/issues/1892

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 issue's proposal and the related rust-clippy issue 1892. Investigate how Cargo.toml dependencies, compiler --extern flags, explicit extern crate declarations, and implicit Rust 2018 loading are represented. Done should mean reliably identifying declared dependencies that are not used by the current crate, with behavior defined for both edition styles.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.