Skip to content

Make rustup update completely update the default target before working on others #4109

Open
@tgross35

Description

@tgross35

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions