Note why I chose 'rm -rf' instead of 'cargo clean'
[khome.git] / home / bin / cargo-clean-all
index 2e5b02a..fb3af47 100755 (executable)
@@ -6,6 +6,8 @@ main() {
     local -r dir="${1-$HOME}"
     local -r jobs="${1-$N_CPUS}"
 
+    # XXX Just doing 'rm -rf' because 'cargo clean' starts doing extra work
+    #     and in some cases even downloads new deps, etc.
     find "$dir" -type f -name Cargo.toml -print0 \
     | xargs -0 -I % -P "$jobs" sh -c 'rm -rf $(dirname "%")/target'
 }
This page took 0.023042 seconds and 4 git commands to generate.