FICHA · MANJARO

cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo

  • tool
  • CLI
  • MAINTENANCE
  • STORAGE
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 27, 2026 description in en

Description

Cleans unused build files generated by Cargo. It helps recover disk space in Rust development environments without deleting the whole target directory blindly.

Use it when build artifacts consume too much storage. Cleaning artifacts can make later builds slower because some files need to be rebuilt.

How to run

cargo sweep

Commands: cargo sweep

Permissions

Permissions not analysed for this source yet.