# The Sway Reference ## Setup If you wish contribute to this reference: 1. Install [Rust](https://www.rust-lang.org/tools/install) if it's not installed. 2. Install [mdbook](https://rust-lang.github.io/mdBook/). ```bash cargo install mdbook ``` 3. To [build](https://rust-lang.github.io/mdBook/cli/build.html) the book, ensure you are in `/docs/reference` and run: ```bash mdbook build ``` 4. To serve a hot-reloading instance of the book in your browser, run: ```bash mdbook serve --open ```