rustup
                                
                                 rustup copied to clipboard
                                
                                    rustup copied to clipboard
                            
                            
                            
                        Make `rustup update` completely update the default target before working on others
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:
- Download rust-stdfor all installed targets
- Download cargo,rust-src, and other components
- Download rust-stdfor the native/default target (?)
- Download rustc
- Remove old components
- 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:
- Move the old toolchain directory to a different name
- Download and install rustc
- Download and install rust-stdfor the default toolchain/target
- Download and install components
- Download and install all remaining targets
- 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