Unofficial mirror of github.com/rust-lang/rust-by-example. Apache-2.0. Not affiliated with or endorsed by rust-lang.
  • Handlebars 95.8%
  • CSS 4.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-29 10:34:33 -03:00
.github/workflows Add korean translation 2026-01-14 10:31:43 +09:00
po docs(zh): update translations for 2026-07 upstream sync 2026-07-05 10:32:36 +08:00
src Update llvm bug link 2026-09-29 14:57:29 +02:00
theme Add korean translation 2026-01-14 10:31:43 +09:00
.gitattributes Fix failing tidy on Windows 2018-01-27 02:56:16 +03:00
.gitignore Add .vscode/ to .gitignore 2024-09-29 21:43:37 +08:00
book.toml Merge pull request #1977 from ehuss/mdbook-0.5 2025-12-01 15:02:09 -03:00
CODE_OF_CONDUCT.md Fix some markdown lint warnings 2020-11-27 13:37:36 +09:00
CONTRIBUTING.md Update to mdbook 0.5 2025-11-28 10:58:35 -08:00
LICENSE-APACHE Initial commit 2014-04-24 17:25:02 -05:00
LICENSE-MIT Initial commit 2014-04-24 17:25:02 -05:00
README.md Update to mdbook 0.5 2025-11-28 10:58:35 -08:00
TRANSLATING.md Fix typo in TRANSLATING.md 2026-08-03 14:59:13 +01:00
TRANSLATING_JA.md Add Japanese translation based on 2024-01-05 23:06:01 +09:00
TRANSLATING_ZH.md Add TRANSLATING_ZH.md 2024-08-31 18:14:56 +08:00
triagebot.toml Migrate from highfive to triagebot 2022-11-27 07:22:14 -08:00

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.