How to cargo clean only a sub crate of a workspace? · Issue #5788 · rust-lang/cargo (original) (raw)

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.