Skip to content
Branch: master
Clone or download
Pull request Compare This branch is 9 commits behind rust-lang-nursery:master.
Latest commit 35daea8 Jan 26, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Restructure Cookbook (rust-lang-nursery#404) Jul 10, 2018
assets Added assets folder for images Feb 26, 2017
ci Implement the FromStr trait for a custom struct (rust-lang-nursery#509) Jan 10, 2019
src update to sqlite version syntax (rust-lang-nursery#516) Jan 26, 2019
tests Initial Feb 20, 2017
theme Revert "Update to mdbook 0.2.1 (rust-lang-nursery#482)" Oct 10, 2018
.gitignore Git ignore Cargo.lock May 23, 2017
.travis.yml support for additional linters (link-checker & aspell) (rust-lang-nur… Jun 6, 2018
LICENSE-CC0 Changed license to CC0… Apr 25, 2018 Revert "Update to mdbook 0.2.1 (rust-lang-nursery#482)" Oct 10, 2018
appveyor.yml Removed appveyor cache as it caused spurious build fails Sep 24, 2017
book.toml Hide examples showing custom header setup until a clean solution is a… Jul 11, 2018
libtest.rmeta Mime type from filename Jul 12, 2018

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


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 on GitHub.

License CC0-badge

Rust Cookbook is licensed under Creative Commons Zero v1.0 Universal License (LICENSE-CC0 or

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.

You can’t perform that action at this time.