On a note unrelated to anything, "delete the whole package manager and try again" is a step I commonly perform as a *first* resort with other language package managers such as npm, opam etc. Maybe it would be nice if cargo or cargo clean had a setting for "reset cargo to newborn"
2
2
good point. @dsilverstone is the rustup maintainer and probably would have ideas for that.
The way I do this is deleting the _other_ folders in `.cargo` (not bin)
2
Yeah. The thing is if you're deleting subfolders like that you're doing something fiddly and maybe not-future-proofed. Like what if someday later you add a /lib folder that should never be deleted.
2
1
If I run cargo --reset-all or rustup reinstall or something and all that does is delete the folders in ~/.cargo other than bin, I can feel confident that whatever it did was "the recommended way", cuz cargo/rustup did it.
Anyway this is not very important.
1
`rustup self uninstall` will recursively delete all of `$RUSTUP_HOME` and `$CARGO_HOME` (or give it a good go at any rate)
1
1
I'll happily entertain issues filed with reasoned suggestions for CLI/behaviour updates :D
May 14, 2020 ยท 4:32 PM UTC
1


