2015-12-12 06:50:02 +08:00
|
|
|
|
# The Rust Programming Language
|
|
|
|
|
|
|
|
|
|
This is the next iteration of “The Rust Programming Language”, which is
|
|
|
|
|
currently located [in the main Rust repository][src]. If you want to read the
|
|
|
|
|
book, you should check it out there or [on the web][prod].
|
|
|
|
|
|
|
|
|
|
[src]: https://github.com/rust-lang/rust/tree/master/src/doc/book
|
|
|
|
|
[prod]: https://doc.rust-lang.org/book/
|
|
|
|
|
|
2015-12-16 05:49:11 +08:00
|
|
|
|
If you would like to see this version rendered, it’s [on GitHub pages][html].
|
2015-12-15 04:00:58 +08:00
|
|
|
|
|
|
|
|
|
[html]: http://rust-lang.github.io/book/
|
|
|
|
|
|
2015-12-12 06:50:02 +08:00
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
Building the book requires [mdBook]. To get it:
|
|
|
|
|
|
2015-12-14 22:45:33 +08:00
|
|
|
|
[mdBook]: https://github.com/azerupi/mdBook
|
2015-12-12 06:50:02 +08:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
$ cargo install mdbook
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
|
|
To build the book, type:
|
|
|
|
|
|
|
|
|
|
```bash
|
2016-01-21 08:31:27 +08:00
|
|
|
|
$ mdbook build
|
2015-12-12 06:50:02 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The output will be in the `book` subdirectory. To check it out, open it in
|
|
|
|
|
your web browser:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
$ firefox book/index.html
|
|
|
|
|
```
|
|
|
|
|
|
2015-12-15 01:11:06 +08:00
|
|
|
|
To run the tests:
|
|
|
|
|
|
|
|
|
|
```bash
|
2016-01-21 08:31:27 +08:00
|
|
|
|
$ mdbook test
|
2015-12-15 01:11:06 +08:00
|
|
|
|
```
|
|
|
|
|
|
2015-12-12 06:50:02 +08:00
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
|
|
I’m not going to be accepting major changes at first, but pull requests to fix
|
2016-05-07 02:58:36 +08:00
|
|
|
|
typos and such are welcome. Please file any issues for any bugs you find.
|
2015-12-12 06:50:02 +08:00
|
|
|
|
|
|
|
|
|
This repository is under the same license as Rust itself, MIT/Apache2.
|
2015-12-19 03:48:16 +08:00
|
|
|
|
|
|
|
|
|
There are a number of labels on Issues:
|
|
|
|
|
|
2016-05-07 02:58:36 +08:00
|
|
|
|
* `Enhancement` issues are a request for an improvement of some kind.
|
2015-12-19 03:48:16 +08:00
|
|
|
|
* `Bug` issues indicate problems in the text.
|
|
|
|
|
* `Needs Backport` will be used when we are further along. At some point, we
|
|
|
|
|
will import the text into their review system, and so changes made here will
|
|
|
|
|
need to be upstreamed. This will track those.
|
|
|
|
|
|
2016-01-09 01:09:26 +08:00
|
|
|
|
## No Starch
|
|
|
|
|
|
|
|
|
|
As the book will be published by No Starch, we first iterate here, then ship the
|
|
|
|
|
text off to No Starch. Then they do editing, and we fold it back in.
|
|
|
|
|
|
2016-05-07 02:58:36 +08:00
|
|
|
|
As such, there’s a directory, `nostarch`, which corresponds to the text in No
|
|
|
|
|
Starch’s system.
|