commit | 05fd5e73194eb615d5d6327cbac35ee7f78651fb | [log] [tgz] |
---|---|---|
author | Aria Beingessner <a.beingessner@gmail.com> | Fri Mar 25 12:24:35 2022 -0400 |
committer | GitHub <noreply@github.com> | Fri Mar 25 12:24:35 2022 -0400 |
tree | b1d3c1e197c612c802f459710e8686beb901003d | |
parent | 53e0a8bd6f250cf6f27204ba082f7c540be50581 [diff] |
fixup newline
This document is the primary reference for the Rust programming language.
This document is not normative. It may include details that are specific to rustc
itself, and should not be taken as a specification for the Rust language. We intend to produce such a document someday, but this is what we have for now.
cargo install mdbook
to install it).To build the project, follow the steps given below :
Clone the project by downloading the ZIP from the GitHub page or run the following command:
git clone https://github.com/rust-lang/reference
Change the directory to the downloaded repository:
cd reference
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:
rustup override set nightly
This will set the nightly version only for your the current project.
If you wish to set Rust nightly for all your projects, you can run the command:
rustup default nightly
Now, run the following command to test the code snippets to catch compilation errors:
mdbook test
To generate a local instance of the book, run:
mdbook build
The generated HTML will be in the book
folder.