mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 04:20:07 -04:00
Merge pull request #788 from rkumar-mongo/patch-1
Update instructions to include adding Rust to PATH
This commit is contained in:
@@ -30,6 +30,19 @@ Rust is installed now. Great!
|
||||
Of course, if you disapprove of the `curl | sh` pattern, you can download, inspect
|
||||
and run the script however you like.
|
||||
|
||||
The installation script automatically adds Rust to your system PATH after your next login.
|
||||
If you want to start using Rust right away, run the following command in your shell:
|
||||
|
||||
```text
|
||||
$ source $HOME/.cargo/env
|
||||
```
|
||||
|
||||
Alternatively, add the following line to your `~/.bash_profile`:
|
||||
|
||||
```text
|
||||
$ export PATH="$HOME/.cargo/bin:$PATH"
|
||||
```
|
||||
|
||||
### Installing on Windows
|
||||
|
||||
On Windows, go to [https://rustup.rs](https://rustup.rs/)<!-- ignore --> and
|
||||
|
||||
Reference in New Issue
Block a user