Skip to content

lint for unused crates #4341

Open
Open
@brson

Description

@brson

It's pretty common for crates listed in Cargo.toml to become unused over time. I don't know of a tool that can figure this out, but it definitely needs the help of rustc. Clippy is in a position to figure this out. rustc should be able to track whether any names from a crate explicitly loaded by rustc are actually used and report when none are.

cc @siddontang

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-cargoType: cargo related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions