1
1
# The Rust Language Reference
2
2
3
- This document is the primary reference for the Rust programming language.
3
+ This document is the primary reference for the Rust programming
4
+ language.
4
5
5
6
This document is not normative. It may include details that are specific
6
7
to ` rustc ` itself, and should not be taken as a specification for the
@@ -10,15 +11,18 @@ what we have for now.
10
11
## Dependencies
11
12
12
13
- rustc (the Rust compiler).
13
- - [ mdbook] ( https://rust-lang.github.io/mdBook/ ) (use ` cargo install mdbook ` to install it).
14
- - rust nightly (you would be required to set your Rust version to the nightly version to make sure all tests pass)
14
+ - [ mdbook] ( https://rust-lang.github.io/mdBook/ ) (use `cargo install
15
+ mdbook` to install it).
16
+ - rust nightly (you would be required to set your Rust version to the
17
+ nightly version to make sure all tests pass).
15
18
16
19
## Build steps
17
20
18
- To build the project, follow the steps given below :
21
+ To build the project, follow the steps given below:
19
22
20
- Clone the project by downloading the ZIP from the [ GitHub page] ( https://github.com/rust-lang/reference ) or
21
- run the following command:
23
+ Clone the project by downloading the ZIP from the [ GitHub
24
+ page] ( https://github.com/rust-lang/reference ) or run the following
25
+ command:
22
26
23
27
```
24
28
git clone https://github.com/rust-lang/reference
@@ -30,21 +34,24 @@ Change the directory to the downloaded repository:
30
34
cd reference
31
35
```
32
36
33
- To run the tests, you would need to set the Rust version to the nightly release. You can do this by executing the following command:
37
+ To run the tests, you would need to set the Rust version to the nightly
38
+ release. You can do this by executing the following command:
34
39
35
40
``` shell
36
41
rustup override set nightly
37
42
```
38
43
39
44
This will set the nightly version only for your the current project.
40
45
41
- If you wish to set Rust nightly for all your projects, you can run the command:
46
+ If you wish to set Rust nightly for all your projects, you can run the
47
+ command:
42
48
43
49
``` shell
44
50
rustup default nightly
45
51
```
46
52
47
- Now, run the following command to test the code snippets to catch compilation errors:
53
+ Now, run the following command to test the code snippets to catch
54
+ compilation errors:
48
55
49
56
``` shell
50
57
mdbook test
0 commit comments