Rust
Disk space management for Rust projects:
Configuration
Section titled “Configuration”sccachedisabled (Hold — unbounded disk growth, see docs/radar.md)- Optimized debug builds with reduced debug info (
debug = 1) - Split debug info on macOS to reduce binary sizes
Cleanup Aliases
Section titled “Cleanup Aliases”cargo-clean-all # Remove ALL target/ directoriescargo-clean-debug # Remove only debug builds, keep releasecargo-clean-old # Clean builds older than 30 dayscargo-cache-clean # Clean ~/.cargo cacherust-disk # Show top 20 largest target dirsMaintenance
Section titled “Maintenance”- Run
cargo-clean-debugmonthly - Use
cargo-clean-oldfor automatic cleanup - Run
system-cleanupfor a consolidated sweep across all cleanup scripts