snippetbashTip
rustup — Install, manage, and update Rust toolchains. Some subcommands, such as `toolchain`, `target`, `updat
Viewed 0 times
commandrustupdateandinstallclimanagerustup
Problem
How to use the
rustup command: Install, manage, and update Rust toolchains. Some subcommands, such as toolchain, target, update, etc. have their own usage documentation. More information: <https://rust-lang.github.io/rustup/>.Solution
rustup — Install, manage, and update Rust toolchains. Some subcommands, such as toolchain, target, update, etc. have their own usage documentation. More information: <https://rust-lang.github.io/rustup/>.Install the nightly toolchain for your system:
rustup install nightlySwitch the default toolchain to nightly so that the
cargo and rustc commands will use it:rustup default nightlyUse the nightly toolchain when inside the current project but leave global settings unchanged:
rustup override set nightlyUpdate all toolchains:
rustup updateList installed toolchains:
rustup showRun
cargo build with a certain toolchain:rustup run {{toolchain}} cargo buildOpen the local Rust documentation in the default web browser:
rustup docCode Snippets
Install the nightly toolchain for your system
rustup install nightlySwitch the default toolchain to nightly so that the `cargo` and `rustc` commands will use it
rustup default nightlyUse the nightly toolchain when inside the current project but leave global settings unchanged
rustup override set nightlyUpdate all toolchains
rustup updateList installed toolchains
rustup showContext
tldr-pages: common/rustup
Revisions (0)
No revisions yet.