You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,36 @@ Alternatively, for a first-time Rust learner, there's several other resources:
13
13
14
14
## Getting Started
15
15
16
-
To use `rustlings` you need to have [Rust](https://www.rust-lang.org/) installed on your computer. To install Rust, go to [rustup.rs](https://rustup.rs/).
16
+
_Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing `xcode-select --install`._
17
+
18
+
_Note: If you have Xcode 10+ installed, you also need to install the package file found at `/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg`._
19
+
20
+
You will need to have Rust installed. You can get it by visiting https://rustup.rs. This'll also install Cargo, Rust's package/project manager.
21
+
22
+
## MacOS/Linux
17
23
18
-
Once Rust is installed, clone the `rustlings` repository and enter the resulting directory:
_Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing `xcode-select --install`._
32
+
This will install Rustlings and give you access to the `rustlings` command. Run it to get started!
26
33
27
-
_Note: If you have Xcode 10+ installed, you also need to install the package file found at `/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg`._
34
+
## Windows/Manually
28
35
29
-
Once in the directory you can install `rustlings` on your machine and run the introduction:
36
+
Basically: Clone the repository, checkout to the latest tag, run `cargo install`.
30
37
31
38
```bash
32
-
cargo install --path .
33
-
rustlings
39
+
git clone https://github.com/rust-lang/rustlings
40
+
cd rustlings
41
+
git checkout tags/1.0.0 # or whatever the latest version is (find out at https://github.com/rust-lang/rustlings/releases/latest)
42
+
cargo install --force --path .
34
43
```
35
44
36
-
If you choose to not install the `rustlings` command, just replace `rustlings`with `cargo run` in the rest of this text.
0 commit comments