Rust 1.24 released, rustfmt now works on stable
This commit is contained in:
parent
091ed2f0a4
commit
017fdc56f1
28
README.md
28
README.md
@ -26,46 +26,26 @@ the "travis example" badge above.
|
|||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
Currently, you can use `rustfmt` on nightly and beta. Rust 1.24 stable will work,
|
You can use `rustfmt` on Rust 1.24 and above.
|
||||||
but we're not quite there yet!
|
|
||||||
|
|
||||||
To install:
|
To install:
|
||||||
|
|
||||||
```
|
```
|
||||||
rustup component add rustfmt-preview --toolchain=nightly
|
rustup component add rustfmt-preview
|
||||||
```
|
```
|
||||||
|
|
||||||
If `nightly` is your default toolchain, you can leave the `--toolchain` off.
|
|
||||||
|
|
||||||
to run on a cargo project in the current working directory:
|
to run on a cargo project in the current working directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
cargo +nightly fmt
|
cargo fmt
|
||||||
```
|
```
|
||||||
|
|
||||||
If `nightly` is your default toolchain, you can leave off the `+nightly`.
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```
|
```
|
||||||
rustup component add rustfmt-preview --toolchain=nightly
|
rustup component add rustfmt-preview
|
||||||
```
|
```
|
||||||
|
|
||||||
If you don't have a nightly toolchain, you can add it using rustup:
|
|
||||||
|
|
||||||
```
|
|
||||||
rustup install nightly
|
|
||||||
```
|
|
||||||
|
|
||||||
You can make the nightly toolchain the default by running:
|
|
||||||
|
|
||||||
```
|
|
||||||
rustup default nightly
|
|
||||||
```
|
|
||||||
|
|
||||||
If you choose not to do that you'll have to run rustfmt using `rustup run ...`
|
|
||||||
or by adding `+nightly` to the cargo invocation.
|
|
||||||
|
|
||||||
## Installing from source
|
## Installing from source
|
||||||
|
|
||||||
To install from source, first checkout to the tag or branch you want to install, then issue
|
To install from source, first checkout to the tag or branch you want to install, then issue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user