Programming Tips - rust: How to clean up project folder

Date: 2026oct19 Language: mixed Q. rust: How to clean up project folder A. You can run this base script from your <myproject>/src folder
#!/bin/sh # My script to clean from src cd ../target/debug || exit 1 size=$(du -sh build deps incremental 2>/dev/null) rm -rf build deps incremental if [[ "$size" == "" ]]; then echo Already clean else echo Cleaned $size fi