cargo-sweep
« Back to VersTracker
Description:
Utility for cleaning up unused build files generated by Cargo
Type: Formula  |  Latest Version: 0.8.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust cargo cleanup build-tool developer-tools
Install: brew install cargo-sweep
About:
Cargo-sweep is a command-line utility designed to manage the disk space used by Cargo projects. It identifies and removes unused build artifacts, such as old dependency versions and incremental compilation files, from the target directory. This helps developers reclaim storage space and keep their Rust project repositories clean and efficient.
Key Features:
  • Removes unused dependencies and old build artifacts
  • Supports time-based, dry-run, and stamp file cleaning strategies
  • Integrates seamlessly with Cargo workflows
Use Cases:
  • Freeing up disk space in large Rust projects with many dependencies
  • Automating cleanup in CI/CD pipelines to reduce build cache size
  • Maintaining a clean project directory without manual file management
Alternatives:
  • cargo clean – The built-in command removes the entire target directory, whereas cargo-sweep provides granular control to remove only unused files.
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 11, 2025 11:07am 0 VERSION_BUMP 41d0e700
Sep 12, 2025 5:34pm 0 VERSION_BUMP 7fc1a2fc
Oct 27, 2024 11:42pm 0 VERSION_BUMP 8ea2b354