LinuxCommandLibrary

rustup-init.sh

Script to install `rustup` and the Rust toolchain.

TLDR

Download and run rustup-init to install rustup and the default Rust toolchain

$ curl https://sh.rustup.rs -sSf | sh -s
copy


Download and run rustup-init and pass arguments to it
$ curl https://sh.rustup.rs -sSf | sh -s -- [arguments]
copy


Run rustup-init and specify additional components or targets to install
$ rustup-init.sh --target [target] --component [component]
copy


Run rustup-init and specify the default toolchain to install
$ rustup-init.sh --default-toolchain [toolchain]
copy


Run rustup-init and do not install any toolchain
$ rustup-init.sh --default-toolchain [none]
copy


Run rustup-init and specify an installation profile
$ rustup-init.sh --profile [minimal|default|complete]
copy


Run rustup-init without asking for confirmation
$ rustup-init.sh -y
copy

Copied to clipboard