cb949b04c0
* removed error-chain from 'Calculate SHA1 sum of iso files concurrently' * removed error chain from 'Salt and hash a password with PBKDF2' * removed error-chain from 'Parse string into DateTime struct' * removed error-chain from 'Log messages with a custom logger' * fixed compiler errors * removed unnecessary feature flag * removed error-chain from 'Log to the Unix syslog' * removed error-chain from 'Parse and increment a version string.' * removed error-chain from 'Parse a complex version string.' * removed error-chain from 'Check if given version is pre-release.' * removed error-chain from 'Percent-encode a string' * removed error-chain from 'Encode and decode hex' * removed error-chain from 'Read CSV records' * removed error-chain from 'Read CSV records with different delimiter' * removed error-chain from 'Handle invalid CSV data with Serde' * removed error-chain from 'Serialize and deserialize unstructured JSON' * removed error-chain from 'Deserialize a TOML configuration file' * removed error-chain from 'Read and write integers in little-endian byte order' * removed error-chain from 'Read lines of strings from a file' * removed error-chain from 'Avoid writing and reading from a same file' * removed error-chain from 'Access a file randomly using a memory map' * removed error-chain from 'Listen on unused port TCP/IP' * removed error-chain from 'Redirect both stdout and stderr of child process to the same file' * removed error-chain from 'Continuously process child process' outputs' * removed error-chain from 'Parse a URL from a string to a `Url` type' * removed error-chain from 'Create new URLs from a base URL' * removed error-chain from 'Extract the URL origin (scheme / host / port)' * removed error-chain from 'Remove fragment identifiers and query pairs from a URL' * removed error-chain from 'Query the GitHub API' * removed error-chain from 'Check if an API resource exists' * removed error-chain from 'Consume a paginated RESTful API' * addressed Travis CI failure * addressed Travis CI failure * addressed Travis CI issue |
||
---|---|---|
.github | ||
assets | ||
ci | ||
src | ||
tests | ||
theme | ||
.gitignore | ||
.travis.yml | ||
appveyor.yml | ||
book.toml | ||
build.rs | ||
Cargo.toml | ||
CONTRIBUTING.md | ||
libtest.rmeta | ||
LICENSE-CC0 | ||
README.md |
A Rust Cookbook
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
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.