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/stable/rust-by-example/ to read it online.

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

  1. $ git clone https://github.com/rust-lang/rust-by-example
  2. $ cd rust-by-example
  3. $ cargo install mdbook
  4. $ mdbook build
  5. $ mdbook serve

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

Contributing

Please see the CONTRIBUTING.md file for more details.

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
dual licensed as above, without any additional terms or conditions.

来源(书栈小编注)