You're exaggerating quite a lot. Biggest I've seen the cargo directory after 3 months of active Rust development was ~17GB.
You can also limit it with an env var. I have capped mine at 10GB.
I’m at 227GB as I write this.
I’m at 227GB as I write this.