rustup
Rust toolchain installer.
Install, manage, and update Rust toolchains.
- Install the nightly toolchain for your system:
rustup install nightly
- Switch the default toolchain to nightly so that the `cargo` and `rustc` commands will use it:
rustup default nightly
- Use the nightly toolchain when inside the current project, but leave global settings unchanged:
rustup override set nightly
rustup update
- List installed toolchains:
rustup show
- Run cargo build with a certain toolchain:
rustup run {toolchain_name} cargo build
- Open the local rust documentation in the default web browser:
rustup doc
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).