]> git.proxmox.com Git - rustc.git/blame - src/doc/edition-guide/README.md
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / doc / edition-guide / README.md
CommitLineData
450edc1f
XL
1# The Rust Edition Guide
2
450edc1f
XL
3This book explains the concept of "editions", major new eras in [Rust]'s
4development. You can [read the book
532ac7d7 5online](https://doc.rust-lang.org/nightly/edition-guide/).
450edc1f
XL
6
7[Rust]: https://www.rust-lang.org/
8
9## License
10
11The Edition Guide is dual licensed under `MIT`/`Apache2`, just like Rust itself.
12See the `LICENSE-*` files in this repository for more details.
13
14## Building locally
15
16You can also build the book and read it locally if you'd like.
17
18### Requirements
19
6a06907d 20Building the book requires [mdBook] 0.4. To get it:
450edc1f 21
6a06907d 22[mdBook]: https://github.com/rust-lang/mdBook
450edc1f
XL
23
24```bash
25$ cargo install mdbook
26```
27
28### Building
29
532ac7d7 30The most straight-forward way to build and view the book locally is to use the following command:
450edc1f 31```bash
6a06907d 32$ mdbook serve --open
450edc1f
XL
33```
34
6a06907d
XL
35This builds the HTML version of the book, starts a webserver at
36http://localhost:3000, and opens your default web browser. It will also
37automatically rebuild the book whenever the source changes, and the page
38should automatically reload.
450edc1f
XL
39
40To run the tests:
41
42```bash
43$ mdbook test
44```