From 367d020a44ffb4018516ffee116997f6f5439717 Mon Sep 17 00:00:00 2001 From: marchersimon <50295997+marchersimon@users.noreply.github.com> Date: Thu, 28 Jul 2022 18:34:26 +0200 Subject: [PATCH] rustup-init.sh: add page (#8259) --- pages/common/rustup-init.sh.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/rustup-init.sh.md diff --git a/pages/common/rustup-init.sh.md b/pages/common/rustup-init.sh.md new file mode 100644 index 000000000..8eb0e3448 --- /dev/null +++ b/pages/common/rustup-init.sh.md @@ -0,0 +1,32 @@ +# rustup-init.sh + +> Script to install `rustup` and the Rust toolchain. +> More information: . + +- Download and run `rustup-init` to install `rustup` and the default Rust toolchain: + +`curl https://sh.rustup.rs -sSf | sh -s` + +- Download and run `rustup-init` and pass arguments to it: + +`curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}` + +- Run `rustup-init` and specify additional components or targets to install: + +`rustup-init.sh --target {{target}} --component {{component}}` + +- Run `rustup-init` and specify the default toolchain to install: + +`rustup-init.sh --default-toolchain {{toolchain}}` + +- Run `rustup-init` and do not install any toolchain: + +`rustup-init.sh --default-toolchain {{none}}` + +- Run `rustup-init` and specify an installation profile: + +`rustup-init.sh --profile {{minimal|default|complete}}` + +- Run `rustup-init` without asking for confirmation: + +`rustup-init.sh -y`