Skip to content

bstrie/reference

This branch is 2 commits ahead of, 1728 commits behind rust-lang/reference:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bstrieJoshua Nelson
and
Joshua Nelson
Mar 18, 2021
d068638 · Mar 18, 2021
Jan 5, 2021
Mar 18, 2021
Sep 15, 2020
Sep 26, 2019
Apr 5, 2017
Nov 12, 2020
Jul 28, 2020
Mar 2, 2017
Mar 2, 2017
Jan 27, 2021
Sep 15, 2020
Feb 14, 2021
Mar 2, 2017
Jul 29, 2020

Repository files navigation

The Rust Language Reference

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.

Dependencies

  • rustc (the Rust compiler).
  • mdbook (use cargo install mdbook to install it).
  • rust nightly (you would be required to set your Rust version to the nightly version to make sure all tests pass)

Build steps

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.

About

The Rust Reference

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 47.8%
  • Rust 40.6%
  • HTML 11.6%