rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Make `rustup update` completely update the default target before working on others

Open tgross35 opened this issue 10 months ago • 7 comments

Problem you are trying to solve

For anyone who has multiple targets installed, completing a rustup update can take quite a while. It seems the order of operations is:

  1. Download rust-std for all installed targets
  2. Download cargo, rust-src, and other components
  3. Download rust-std for the native/default target (?)
  4. Download rustc
  5. Remove old components
  6. Install downloaded components

However, often times only the default target is of immediate interest.

Solution you'd like

Instead, do something like the following order:

  1. Move the old toolchain directory to a different name
  2. Download and install rustc
  3. Download and install rust-std for the default toolchain/target
  4. Download and install components
  5. Download and install all remaining targets
  6. Remove the backup directory

This should make it feasible to start working with the most commonly used target within a couple of minutes while everything else updates in the background.

Notes

No response

tgross35 avatar Dec 09 '24 04:12 tgross35