Skip to content

How to cargo clean only a sub crate of a workspace? #5788

Closed
@Boscop

Description

@Boscop

How to cargo clean only a sub crate of a workspace?
I tried cargo clean -p cratename but it didn't work..

I wanted to run clippy on the subcrate without having to clean & rebuild the main crate because rebuilding takes hours. But clippy just said Finished dev [optimized + debuginfo] target(s) in 7.01s but it didn't say "compiling ...", so I want to clean only the sub crate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions