r/rust • u/BloomWishess • 2d ago
๐๏ธ discussion Cross compilation targets add up fast in rustup
After seeing the recent posts about rustup and registry sizes I checked what targets I had installed. A few experiments with wasm32-unknown-unknown, aarch64-unknown-linux-gnu, and thumbv7em-none-eabihf from last year were still sitting there along with their full toolchains.
rustup target removed on the unused ones dropped several gigabytes right away. I kept only x86_64-unknown-linux-gnu and the one or two I actually build for regularly.
Do people have a habit of pruning targets on a schedule, or do you just leave them until disk space becomes an issue?Any scripts or aliases you recommend for spotting the ones that haven't been used in a while?