C

cargo-cln

cargo-cln

This cargo subcommand allows you to specify additional commands to perform when clean ing your project. It is intended to be used in place of cargo clean.

Config

In your Cargo.toml, add a package.metadata.cln array, with entries for the commands you want to perform when running cargo cln. Like so:

[package.metadata]
cln = [
    ["rm", "-rf", "some_directory_generated_by_build-rs"]
]