Commit Graph

136 Commits

Author SHA1 Message Date
Jonathan
a4d7011c18 Document RUSTFMT environment variable (#4464)
* Document RUSTFMT env var

* Move documentation up

* Apply suggestions from code review

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Fix accedental removal

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
# Conflicts:
#	README.md
2021-10-30 11:07:59 -05:00
chansuke
a24ed3c322 Fix MSRV 2021-10-30 11:07:59 -05:00
enterprisey
54b1e0bb15 README grammar fix (#3926)
Remove comma splice
2021-10-30 11:07:59 -05:00
Michael Murphy
e634a6f9a8 Updating outdated links (#4869)
* Updating outdated links

Updating the links to the docs and source code for `ast.rs`. Seems like it was moved to a new crate at some point.

* Updating more outdated links

This time, the links to the `fmt-rfcs` repository, which is now owned by
`rust-dev-tools` (although GitHub was redirecting anyway).

* Update Contributing.md

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>

Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
2021-07-25 22:53:32 -05:00
Alexander Melentyev
71f01d1974 Delete spaces 2021-06-21 12:11:37 +03:00
Caleb Cartwright
dfd27663dc add json emit mode (#3735) 2019-08-16 11:14:53 +09:00
Florian Gilcher
e653ff03e9 Recommend running rustfmt last (#3733)
As rustfmt checks fail, they might hide errors of more importance.
Running it last makes sure that the serious bugs have been found and is less frustrating.
2019-08-09 17:42:50 +09:00
Michele d'Amico
76e2ba25bd #3665: Implemented (#3689) 2019-07-17 09:40:33 +09:00
rchaser53
76895647c5 update README.md for GitHub page 2019-04-11 00:36:28 +09:00
lwshang
fdd4bce8b3 Fix Travis-CI badge url 2019-04-05 16:32:42 -04:00
Stéphane Campinas
8a905a8778
put rustfmt::skip::macro mention together with the rustfmt::skip bullet point 2019-03-24 18:25:10 +01:00
rchaser53
1d9104bbae reflect scampi review
- fix README.md
- fix BadAttr doc
- is_rustfmt_macro_error => is_unknown_rustfmt_attr
2019-03-21 21:45:57 +09:00
rchaser53
558a2c3512 add explanation for rustfmt::skip::macros 2019-03-21 00:19:52 +09:00
Nick Cameron
693d2d9ca0
Update README.md
Update the Appveyor badge
2019-02-28 08:44:59 +13:00
Stéphane Campinas
78d4fca2d7
indicate in the readme that edition may need to be written in rustfmt.toml 2019-01-21 00:53:31 +01:00
Nick Cameron
2979ce8f8b remove from README.md 2018-12-10 08:36:09 +13:00
Lucian
8cd8ab5f4b Fix minor typos and grammar
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
2018-12-06 15:31:43 +00:00
Nick Cameron
378994b858 Add a version option 2018-11-27 14:18:14 +13:00
Philipp Krones
9adf96d961
Remove deprecated cfg_attr from README
`tool_attributes` are stable since 1.30. The old `cfg_attr(rustfmt, rustfmt_skip)` attributes aren't necessary anymore and everyone should switch to `#[rustfmt::skip]` sooner or later.

There is also a Clippy lint in the making for this: rust-lang-nursery/rust-clippy#3123
2018-10-29 10:27:19 +01:00
Otavio Salvador
b18935047c README: remove old requirement for Rust 2018 edition use
From now on, the `Cargo.toml` is taken into account when triggering
formatting using `cargo fmt`.

It is considered editor's duty to pass the proper `--edition` argument
for `rustfmt` if it is being called manually.

Refs: #3104.
Refs: #3129.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-24 21:59:43 -03:00
kellerkindt
cb99316c8a Add howto for CLion / IntelliJ IDE integration 2018-10-24 00:34:01 +02:00
Boyu Yang
ef4de4d005
Fix typo in README.md. 2018-09-13 10:01:34 +08:00
Ryan Leckey
eec74360dc Accept 2015 and 2018 instead of Edition2015 and Edition2018 for edition option 2018-08-31 00:04:23 -07:00
David Alber
c69b9601c2 Use stable Rust in Travis CI config snippet
In #2725 the Travis CI config snippet was changed to use nightly
Rust because the stable rustfmt of the time (rustfmt 0.4.1-stable)
did not contain the `--check` flag, which is used in the Travis
config snippet. The current stable rustfmt (rustfmt 0.8.2-stable)
does contain the `--check` flag, so it is now possible to use the
Travis config in the README with stable rustfmt.
2018-08-29 21:59:12 -07:00
Maximilian Roos
2e75f23de8
remove old readme content 2018-08-27 22:53:47 -04:00
Daniel Watkins
66bd0d472b
Correct the ordering of the config help option 2018-08-10 20:05:54 -04:00
Seiichi Uchida
cb10e06559 Replace '--conifig-help' with '--config=help' 2018-08-07 13:00:30 +09:00
Seiichi Uchida
264f6b8690 Remove outdated paragraphs 2018-08-07 12:58:49 +09:00
Nick Cameron
30fe66b110 Tiny clarification in README.md 2018-08-02 21:09:52 +12:00
Daniel Carosone
1c6090c440 call out edition config in Quick start (#2837) 2018-07-28 18:04:55 +10:00
jr
9c6a53053b
Update Readme.md
Use "rustfmt --print-config default rustfmt.toml" instead of "rustfmt --dump-default-config rustfmt.toml" to create default config
2018-07-22 13:00:33 +02:00
Nick Cameron
9038da6df0
Merge pull request #2790 from DevOrc/master
add emit flag documentation
2018-07-17 11:21:00 +12:00
Nick Cameron
667ad76bca Add a link to ag_dubs' CI blog post to the README 2018-07-12 22:28:55 +12:00
DevOrc
e133fc5106 add emit flag documentation 2018-06-19 14:36:10 -04:00
David Alber
390ae7940a Use nightly Rust in Travis CI config snippet
The current stable rustfmt (rustfmt 0.4.1-stable) does not contain
the `--check` flag, which is used in the Travis config snippet.
Once a new stable version is released, the snippet can be switched
back to stable Rust.
2018-05-18 21:18:49 -07:00
Pierre-Etienne Bougue
87c56544e2 Remove "write-mode" from doc
"write-mode" param is now deleted
and mentioning it in doc was misleading
2018-05-18 16:40:58 +02:00
Nick Cameron
223fdfa086 Fix example travis config
Closes #2688
2018-05-18 15:43:20 +12:00
Nick Cameron
de950c2973 Skip on rustfmt::skip as well as rustfmt_skip 2018-05-14 16:13:21 +12:00
Nick Cameron
5d9f5aa05a Replace --write-mode with --emit
cc #1976
2018-05-13 14:13:24 +12:00
Loïc Damien
c2ebb06a85
Update README.md to reflect change in #2539 2018-05-06 18:51:26 +02:00
David Barsky
f9532ba8d7 Implemented rough draft of check write mode. (#2539)
* Add rough draft of `check` mode. Not unit tested.

* Added assert-cli; simple test case for `--write-mode=check`

* Lightly documented `check` WriteMode

* wrote clearer phrasing for config::options::WriteMode::Check

* Implemented default for WriteMode where default is Overwrite

* Simplified exit code handling

* updated README.md as per @nrc' comment

* collapsed exit-code handling

* Removed write_mode from Summary, introduced partial option parsing earlier

* Handle write-mode parsing in a slightly better way.
2018-04-20 11:14:11 +12:00
Dale Wijnand
8331197b7b
specify nightly required to install from source
when using stable cargo install fails due to #![feature] usage:

    error[E0554]: #![feature] may not be used on the stable release channel
      --> /Users/dnw/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-serialize-67.0.0/lib.rs:24:1
       |
    24 | #![feature(rustc_private, box_syntax)]
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    error[E0554]: #![feature] may not be used on the stable release channel
      --> /Users/dnw/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-serialize-67.0.0/lib.rs:25:1
       |
    25 | #![feature(core_intrinsics)]
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    error[E0554]: #![feature] may not be used on the stable release channel
      --> /Users/dnw/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-serialize-67.0.0/lib.rs:26:1
       |
    26 | #![feature(i128_type)]
       | ^^^^^^^^^^^^^^^^^^^^^^
    
    error[E0554]: #![feature] may not be used on the stable release channel
      --> /Users/dnw/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-serialize-67.0.0/lib.rs:27:1
       |
    27 | #![feature(specialization)]
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    error: aborting due to 4 previous errors
    
    error: Could not compile `rustc-ap-serialize`.
    warning: build failed, waiting for other jobs to finish...
    error: failed to compile `rustfmt-nightly v0.4.1 (file:///d/rustfmt)`, intermediate artifacts can be found at `/d/rustfmt/target`
2018-04-09 22:54:17 +01:00
Russell Cohen
2e7d1a1184 Include instructions to install on nightly (#2590) 2018-04-03 11:10:50 +09:00
Nick Cameron
c829875960 List limitations in the README
Closes #2109
2018-03-09 11:16:21 +13:00
Nick Cameron
2a5b25e5db
Merge pull request #2499 from davidalber/add-rust-code-of-conduct
Adding the Rust Code of Conduct
2018-03-03 11:37:56 +13:00
David Alber
87d3b3c25a Adding links to the Code of Conduct 2018-03-01 21:58:07 -08:00
Nick Cameron
ab7b4a8bf5 Revert "Remove rustfmt and cargo-fmt"
This reverts commit 9d2229f2fd.

And `cargo updates`
2018-03-02 14:12:33 +13:00
Nick Cameron
9d2229f2fd Remove rustfmt and cargo-fmt
Moved them to the rustfmt-bin repo
2018-02-26 16:53:31 +13:00
Aleksey Kladov
bcd6765285 Simplify CI exaple in the readme
rustfmt-preview is now in stable
2018-02-17 10:47:54 +03:00
Jonathan Morley
017fdc56f1
Rust 1.24 released, rustfmt now works on stable 2018-02-15 14:35:45 -05:00