Merge pull request #1015 from srinivasreddy/readme

Add section - Installing from source
This commit is contained in:
Nick Cameron 2016-05-31 01:24:07 +12:00
commit 0678152e73

View file

@ -40,6 +40,14 @@ installed alongside rustfmt. To only install rustfmt run
```
cargo install --no-default-features rustfmt
```
## Installing from source
To install from source, first checkout to the tag or branch you want to install, then issue
```
cargo install --path .
```
This will install `rustfmt` in your `~/.cargo/bin`. Make sure to add `~/cargo/bin` directory to
your PATH variable.
## Running