Skip to content

Commit c92fd03

Browse files
authored
Merge pull request #955 from saki-osive/master
Added setting nightly as a requirement for running tests
2 parents 7b88740 + b0b1014 commit c92fd03

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ what we have for now.
1111

1212
- rustc (the Rust compiler).
1313
- 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)
1415

1516
## Build steps
1617

@@ -28,7 +29,22 @@ Change the directory to the downloaded repository:
2829
```sh
2930
cd reference
3031
```
31-
Run the following command to test the code snippets to catch compilation errors:
32+
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:
34+
35+
```shell
36+
rustup override set nightly
37+
```
38+
39+
This will set the nightly version only for your the current project.
40+
41+
If you wish to set Rust nightly for all your projects, you can run the command:
42+
43+
```shell
44+
rustup default nightly
45+
```
46+
47+
Now, run the following command to test the code snippets to catch compilation errors:
3248

3349
```shell
3450
mdbook test

0 commit comments

Comments
 (0)