2017-11-27 14:58:49 +00:00
|
|
|
# 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`
|
|
|
|
|
|
|
|
- Update all toolchains:
|
|
|
|
|
|
|
|
`rustup update`
|
|
|
|
|
|
|
|
- List installed toolchains:
|
|
|
|
|
|
|
|
`rustup show`
|
|
|
|
|
|
|
|
- Run cargo build with a certain toolchain:
|
|
|
|
|
2017-11-27 23:29:43 +00:00
|
|
|
`rustup run {{toolchain name}} cargo build`
|