mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 15:02:09 +02:00
29 lines
654 B
Markdown
29 lines
654 B
Markdown
# rustup
|
|
|
|
> Rust toolchain installer.
|
|
> Install, manage, and update Rust toolchains.
|
|
> More information: <https://github.com/rust-lang/rustup.rs>.
|
|
|
|
- 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`
|
|
|
|
- Update all toolchains:
|
|
|
|
`rustup update`
|
|
|
|
- List installed toolchains:
|
|
|
|
`rustup show`
|
|
|
|
- Run cargo build with a certain toolchain:
|
|
|
|
`rustup run {{toolchain_name}} cargo build`
|