$HOME/.cargo/registry/src is up to 200MB now and keeps growing. This is because I’m trying various new crates as I learn Rust.
cargo clean for the little apps I try out, but what I’d like to do is get rid of all the stuff in
$HOME/.cargo/registry/src that none of my apps use.
Is it safe to do rm -rf on this directory & trust that cargo will redownload anything it needs the next time I build something?
What would help me (but don’t know how possible) would be:
cargo clean --registry
to completely clear out the registry so that everything gets downloaded fresh as needed, and
cargo clean -r or
cargo clean --recursive
to do the same as
cargo clean but working recursively. The use case for this is if you have a directory of many separate examples (which is my situation as a beginner trying lots of little apps).