Skip to content

A way for cargo clean to remove content for a specific toolchain version #5113

Open
@davemilter

Description

@davemilter

Looks like cargo can cache result of cargo build for different toolchains,
if I run cargo +stable build && cargo +nightly build && cargo +stable build with empty target
it build only two times, the second run of cargo +stable build does nothing.
This is great.
But if I run cargo +nightly clean the next run of cargo +stable build also run full rebuild.

It would be great if cargo +nightly build clean cache related only to nightly toolchain,
cargo +stable clean clean cache related only to stable toolchain and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-cleanS-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