πŸ“¦ rust-lang / rust-by-example

Learn Rust with examples (Live code editor included)

β˜… 7.8k stars β‘‚ 1.5k forks πŸ‘ 7.8k watching βš–οΈ Apache License 2.0
πŸ“₯ Clone https://github.com/rust-lang/rust-by-example.git
HTTPS git clone https://github.com/rust-lang/rust-by-example.git
SSH git clone git@github.com:rust-lang/rust-by-example.git
CLI gh repo clone rust-lang/rust-by-example
Mario Idival Mario Idival Merge pull request #1986 from partrita/fix-typo e6ceffb 4 days ago πŸ“ History
πŸ“‚ master View all commits β†’
πŸ“ .github
πŸ“ po
πŸ“ src
πŸ“ theme
πŸ“„ .gitattributes
πŸ“„ .gitignore
πŸ“„ book.toml
πŸ“„ CONTRIBUTING.md
πŸ“„ LICENSE-APACHE
πŸ“„ LICENSE-MIT
πŸ“„ README.md
πŸ“„ TRANSLATING.md
πŸ“„ triagebot.toml
πŸ“„ README.md

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 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

  • Japanese/ζ—₯本θͺž: [TRANSLATING_JA.md]
  • Chinese/δΈ­ζ–‡: [TRANSLATING_ZH.md]

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.