## Quick start
-You must be using the latest nightly compiler toolchain.
+Currently, you can use `rustfmt` on nightly and beta. Rust 1.24 stable will work,
+but we're not quite there yet!
To install:
```
-cargo install rustfmt-nightly
+rustup component add rustfmt-preview --toolchain=nightly
```
+If `nightly` is your default toolchain, you can leave the `--toolchain` off.
+
to run on a cargo project in the current working directory:
```
-cargo fmt
+cargo +nightly fmt
```
-## Installation
-
-```
-cargo install rustfmt-nightly
-```
+If `nightly` is your default toolchain, you can leave off the `+nightly`.
-or if you're using [Rustup](https://www.rustup.rs/)
+## Installation
```
-rustup update
-rustup run nightly cargo install rustfmt-nightly
+rustup component add rustfmt-preview --toolchain=nightly
```
If you don't have a nightly toolchain, you can add it using rustup:
If you choose not to do that you'll have to run rustfmt using `rustup run ...`
or by adding `+nightly` to the cargo invocation.
-Usually cargo-fmt, which enables usage of Cargo subcommand `cargo fmt`, is
-installed alongside rustfmt. To only install rustfmt run
-
-```
-cargo install --no-default-features rustfmt-nightly
-```
## Installing from source
To install from source, first checkout to the tag or branch you want to install, then issue