No description
Find a file
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) 3fcb08bee2 Fix the compilation error (#532)
Try `cargo run --verbose` after copying the code into a separate project. This example snippet does not compile and requires `serde` create to be present in the main.rs. So include the serde crate will fix the compilation error.
2019-09-19 16:21:40 -07:00
.github Update inclusive range syntax, fix script pathname, crate deps (#547) 2019-09-19 11:04:37 -07:00
assets Added assets folder for images 2017-02-26 10:21:43 -06:00
ci add unicode-segmentation example (#517) 2019-04-12 09:05:36 -07:00
src Fix the compilation error (#532) 2019-09-19 16:21:40 -07:00
tests Initial 2017-02-20 11:22:19 -08:00
theme Revert "Update to mdbook 0.2.1 (#482)" 2018-10-10 15:15:49 -07:00
.gitignore Git ignore Cargo.lock 2017-05-23 12:33:40 -07:00
.travis.yml support for additional linters (link-checker & aspell) (#410) 2018-06-06 08:33:25 -07:00
appveyor.yml Removed appveyor cache as it caused spurious build fails 2017-09-24 10:17:38 +02:00
book.toml Revert "Update to mdbook 0.2.1 (#482)" 2018-10-10 15:15:49 -07:00
build.rs Hide examples showing custom header setup until a clean solution is available (#430) 2018-07-11 13:13:51 -07:00
Cargo.toml postgres version doesn't conflict with rand (#550) 2019-09-19 15:45:49 -07:00
CONTRIBUTING.md Update inclusive range syntax, fix script pathname, crate deps (#547) 2019-09-19 11:04:37 -07:00
libtest.rmeta Mime type from filename 2018-07-12 15:21:43 -07:00
LICENSE-CC0 Changed license to CC0 https://creativecommons.org/publicdomain/zero/1.0/ (#210) 2018-04-25 15:28:21 -07:00
README.md Update Travis CI URL (#545) 2019-09-19 11:54:33 -07:00

A Rust Cookbook Build Status travis Build Status appveyor

Read it here.

This Rust Cookbook is a collection of simple Rust examples that demonstrate good practices to accomplish common programming tasks, using the crates of the Rust ecosystem.

These examples are complete, and suitable for copying directly into new cargo projects. They are tested and guaranteed to work.

Read it offline

If you'd like to read it locally:

$ git clone https://github.com/rust-lang-nursery/rust-cookbook
$ cd rust-cookbook
$ cargo install mdbook --vers "0.1.8"
$ mdbook serve --open

The output can also be opened from the book subdirectory in your web browser.

$ xdg-open ./book/index.html # linux
$ start .\book\index.html    # windows
$ open ./book/index.html     # mac

Contributing

This project is intended to be easy for new Rust programmers to contribute to, and an easy way to get involved with the Rust community. It needs and welcomes help.

For details see CONTRIBUTING.md on GitHub.

License CC0-badge

Rust Cookbook is licensed under Creative Commons Zero v1.0 Universal License (LICENSE-CC0 or https://creativecommons.org/publicdomain/zero/1.0/legalcode)

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Rust Cookbook by you, as defined in the CC0-1.0 license, shall be dedicated to the public domain and licensed as above, without any additional terms or conditions.