mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 21:35:42 +02:00
Added page for rustup
This commit is contained in:
parent
466412f558
commit
b6bc645d83
1 changed files with 24 additions and 0 deletions
24
pages/common/rustup.md
Normal file
24
pages/common/rustup.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
`rustup run {{toolchain name}} cargo build`
|
Loading…
Add table
Reference in a new issue