@@ -113,19 +113,30 @@ tier 3 platforms that will ever be!
113
113
114
114
## Installing Rust
115
115
116
- All we need to do is open a terminal and type this:
116
+ All you need to do on Unix systems like Linux and macOS is open a
117
+ terminal and type this:
117
118
118
119
``` bash
119
120
$ curl https://sh.rustup.rs -sSf | sh
120
121
```
121
122
122
- This will download a script, and start the installation. If it all goes well,
123
- you’ll see this appear:
123
+ It will download a script, and start the installation. If everything
124
+ goes well, you’ll see this appear:
124
125
125
126
``` text
126
127
Rust is installed now. Great!
127
128
```
128
129
130
+ Installing on Windows is nearly as easy: download and run
131
+ [ rustup-init.exe] . It will start the installation in a console and
132
+ present the above message on success.
133
+
134
+ For other installation options and information, visit the [ install]
135
+ page of the Rust website.
136
+
137
+ [ rustup-init.exe ] : https://win.rustup.rs
138
+ [ install ] : https://www.rust-lang.org/install.html
139
+
129
140
## Uninstalling
130
141
131
142
Uninstalling Rust is as easy as installing it:
@@ -146,12 +157,15 @@ You should see the version number, commit hash, and commit date.
146
157
147
158
If you do, Rust has been installed successfully! Congrats!
148
159
149
- If you don't and you're on Windows, check that Rust is in your %PATH% system
150
- variable: ` $ echo %PATH% ` . If it isn't, run the installer again, select "Change"
151
- on the "Change, repair, or remove installation" page and ensure "Add to PATH" is
152
- installed on the local hard drive. If you need to configure your path manually,
153
- you can find the Rust executables in a directory like
154
- ` "C:\Program Files\Rust stable GNU 1.x\bin" ` .
160
+ If you don't, that probably means that the ` PATH ` environment variable
161
+ doesn't include Cargo's binary directory, ` ~/.cargo/bin ` on Unix, or
162
+ ` %USERPROFILE%\.cargo\bin ` on Windows. This is the directory where
163
+ Rust development tools live, and most Rust developers keep it in their
164
+ ` PATH ` environment variable, which makes it possible to run ` rustc ` on
165
+ the command line. Due to differences in operating systems, command
166
+ shells, and bugs in installation, you may need to restart your shell,
167
+ log out of the system, or configure ` PATH ` manually as appropriate for
168
+ your operating environment.
155
169
156
170
Rust does not do its own linking, and so you’ll need to have a linker
157
171
installed. Doing so will depend on your specific system. For
0 commit comments