rust-cookbook/README.md

59 lines
2 KiB
Markdown
Raw Normal View History

2019-12-17 04:14:06 +00:00
# A Rust Cookbook   [![Build Status travis]][travis]
2017-05-18 00:08:38 +00:00
2019-09-19 18:54:33 +00:00
[Build Status travis]: https://api.travis-ci.com/rust-lang-nursery/rust-cookbook.svg?branch=master
[travis]: https://travis-ci.com/rust-lang-nursery/rust-cookbook
2017-02-21 22:41:35 +00:00
2017-04-30 06:24:42 +00:00
**[Read it here]**.
2017-02-21 22:41:35 +00:00
This _Rust Cookbook_ is a collection of simple [Rust] examples that
2017-04-30 06:24:42 +00:00
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:
```bash
$ git clone https://github.com/rust-lang-nursery/rust-cookbook
$ cd rust-cookbook
$ cargo install mdbook --vers "0.3.5"
$ mdbook serve --open
```
2017-12-28 16:49:36 +00:00
The output can also be opened from the `book` subdirectory in your web browser.
```bash
2017-12-28 16:49:36 +00:00
$ xdg-open ./book/index.html # linux
$ start .\book\index.html # windows
$ open ./book/index.html # mac
```
[Read it here]: https://rust-lang-nursery.github.io/rust-cookbook
[Rust]: https://www.rust-lang.org/
2017-02-21 22:41:35 +00:00
2017-02-25 08:25:51 +00:00
## Contributing
2017-02-21 22:41:35 +00:00
This project is intended to be easy for new [Rust] programmers to
2017-07-21 00:38:24 +00:00
contribute to, and an easy way to get involved with the Rust
2017-04-30 06:24:42 +00:00
community. It needs and welcomes help.
2017-02-21 22:41:35 +00:00
2017-04-30 06:24:42 +00:00
For details see [CONTRIBUTING.md] on GitHub.
2017-02-21 22:41:35 +00:00
[CONTRIBUTING.md]: https://github.com/rust-lang-nursery/rust-cookbook/blob/master/CONTRIBUTING.md
2017-02-21 22:41:35 +00:00
## License [![CC0-badge]][CC0-deed]
2017-04-30 06:24:42 +00:00
Rust Cookbook is licensed under Creative Commons Zero v1.0 Universal License
([LICENSE-CC0](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][CC0-deed] and licensed as above, without any additional
terms or conditions.
[CC0-deed]: https://creativecommons.org/publicdomain/zero/1.0/deed.en
[CC0-badge]: https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/cc-zero.svg