Skip to content

Lint for 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-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions