Skip to content

Upstream integration with cargo #276

@joshtriplett

Description

@joshtriplett

In today's @rust-lang/cargo meeting, we discussed some of the issues and false positives with the upstream lint for unused crates. We're interested in trying to get Cargo to natively issue this lint, initially as something that can be enabled, and eventually something enabled by default.

See rust-lang/cargo#6669 (comment) - we agreed to try the experiment of adding an option for --all-targets-including-doc (which may become --all-targets in a future edition). That solves part of the problem.

It seems like that plus dep-info should give enough information to compute this without false positives.

@est31 Given the experience you have with cargo-udeps, we wondered if you'd be interested in prototyping adding this support natively to Cargo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions