Update install instructions with rustfmt-preview

This commit is contained in:
Ignotus Peverell 2018-03-06 00:53:08 +00:00 committed by GitHub
parent 449fabf24f
commit 1ab43df807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,16 +7,11 @@ Grin uses [rustfmt](https://github.com/rust-lang-nursery/rustfmt) to maintain co
Note: we assume Rust has been installed via [Rustup](https://www.rustup.rs/).
See [build docs](./build.md) for more info.
rustfmt itself requires the nightly toolchain -
```
rustup component add rustfmt-preview
rustup update
rustup install nightly
rustup run nightly cargo install rustfmt-nightly
```
If you still get problems with running `cargo +nightly fmt`, you might need to also do `rustup component add rustfmt-preview` (see [more info](https://github.com/rust-lang-nursery/rustfmt/issues/2304))
## Install git pre-commit hook
There is a basic git [pre-commit](../.hooks/pre-commit) hook in the repo.