Skip to content

Commit

Permalink
Merge pull request #144 from senorsmile/rustup-override-ver
Browse files Browse the repository at this point in the history
Add example to rustup to show overriding to specific version
  • Loading branch information
steveklabnik authored Feb 11, 2019
2 parents 23ad061 + 001f998 commit 7b493e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rust-2018/rustup-for-managing-rust-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ If you run this inside of a project:
$ rustup override set nightly
```

Or, if you'd like to target a different version of Rust:
```console
$ rustup override set 1.30.0
```

Then when you're in that directory, any invocations of `rustc` or `cargo`
will use that toolchain. To share this with others, you can create a
`rust-toolchain` file with the contents of a toolchain, and check it into
Expand Down Expand Up @@ -209,4 +214,4 @@ $ rustup component add llvm-tools-preview
```

This is the newest component, and so doesn't have good documentation at the
moment.
moment.

0 comments on commit 7b493e4

Please sign in to comment.