Clone this repo:
  1. 2e02f22 Merge pull request #1981 from darkdevil3610/master by Mario Idival · 5 days ago master
  2. dc6a0ad Merge pull request #1980 from lucasfpascoali/patch-1 by Mario Idival · 5 days ago
  3. ad6ee3d Merge pull request #1 from darkdevil3610/darkdevil3610-patch-1 by Gourav Suresh · 5 days ago
  4. 5c7e39b docs(comments): improve readability and formatting by Gourav Suresh · 5 days ago
  5. 62ee0ca Fix calculation of "the sum of all the numbers with odd squares under 1000" in HOF.md by Lucas Furlanetto Pascoali · 5 days ago

Rust By Example

Build Status

Learn Rust with examples (Live code editor included)

Using

If you'd like to read Rust by Example, you can visit https://doc.rust-lang.org/rust-by-example/ to read it online.

If you'd like to read it locally, install Rust, and then:

git clone https://github.com/rust-lang/rust-by-example
cd rust-by-example
cargo install mdbook
mdbook build
mdbook serve

To be able to run the examples, you must be connected to the internet; you can read all content offline, however!

The following warnings can be ignored safely.

 WARN The command `mdbook-gettext` for preprocessor `gettext` was not found, but is marked as optional.

Using translated version

If there is a translated resource in po/ directory, it can be specified through MDBOOK_BOOK__LANGUAGE like below:

git clone https://github.com/rust-lang/rust-by-example
cd rust-by-example
cargo install mdbook
MDBOOK_BOOK__LANGUAGE=ja mdbook build
MDBOOK_BOOK__LANGUAGE=ja mdbook serve

Contributing

Please see the CONTRIBUTING.md file for more details.

Translating

Please see the TRANSLATING.md file for more details.

Translating guide for each languages

Translations to other languages

License

Rust by Example is licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Rust by Example by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.