readme: Clarify the ways of specifying rustfmt_skip

It was previously unclear that the `cfg_attr` version works in stable
Rust.
This commit is contained in:
Kamal Marhubi 2016-03-17 00:51:16 -04:00
parent 6f2bb908bb
commit 0e0f3c8c61

View File

@ -110,8 +110,8 @@ options covering different styles. File an issue, or even better, submit a PR.
* For things you do not want rustfmt to mangle, use one of
```rust
#[rustfmt_skip]
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt_skip] // requires nightly and #![feature(custom_attribute)] in crate root
#[cfg_attr(rustfmt, rustfmt_skip)] // works in stable
```
* When you run rustfmt, place a file named rustfmt.toml in target file
directory or its parents to override the default settings of rustfmt.