mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 00:51:29 +00:00
Update cheatsheets
This commit is contained in:
38
rustup
Normal file
38
rustup
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 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}} cargo build`
|
||||
|
||||
- Open the local Rust documentation in the default web browser:
|
||||
|
||||
`rustup doc`
|
||||
Reference in New Issue
Block a user