mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 04:11:08 +03:00
Update install instructions with rustfmt-preview
This commit is contained in:
parent
449fabf24f
commit
1ab43df807
1 changed files with 1 additions and 6 deletions
|
@ -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/).
|
Note: we assume Rust has been installed via [Rustup](https://www.rustup.rs/).
|
||||||
See [build docs](./build.md) for more info.
|
See [build docs](./build.md) for more info.
|
||||||
|
|
||||||
rustfmt itself requires the nightly toolchain -
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
rustup component add rustfmt-preview
|
||||||
rustup update
|
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
|
## Install git pre-commit hook
|
||||||
|
|
||||||
There is a basic git [pre-commit](../.hooks/pre-commit) hook in the repo.
|
There is a basic git [pre-commit](../.hooks/pre-commit) hook in the repo.
|
||||||
|
|
Loading…
Reference in a new issue