Skip to content

Report unused [dependencies] #15813

@epage

Description

@epage

What it does

Detect unused dependencies and suggest removing them

Advantage

  • Faster builds
  • False positives if done in rustc

Drawbacks

  • Complicated

Example

[package]
name = "libc"

[dependencies]
clap = "4"

Could be written as:

[package]
name = "libc"

[dependencies]

(since libc doesn't use clap)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-lintArea: new lintPerformanceGotta go fast!S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions