Skip to content

cargo update removes uninstalled deps from target/, when detected they have been removed from Cargo.toml #6435

Open
@ThatNerdyPikachu

Description

@ThatNerdyPikachu

Describe the problem you are trying to solve

I get quite annoyed of having to clear my target folder and rebuild everytime this happens, and I don't feel like digging through target/ in search for my package.

Describe the solution you'd like

An extension to cargo update (maybe even a seperate command) that removes unused packages from target/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-cleanCommand-updateS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions