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.
- rustc (the Rust compiler).
- mdbook (use
cargo install mdbookto install it).
First, go to the repository folder and test the code snippets to catch compilation errors:
cd reference
mdbook testAnd then generate the book:
mdbook buildThe generated HTML will be in the docs folder.