Commit graph

117 commits

Author SHA1 Message Date
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
David Alber
e2088b0e0e Adding badge and explanation for Travis CI example status 2018-02-14 08:51:51 -08:00
Seiichi Uchida
0910883cf2 Update a minimal travis example 2018-02-04 11:27:31 +09:00
Steve Klabnik
9bf8f7986d
Fix installation instructions to use rustup 2018-01-05 09:34:45 -05:00
David Alber
bdda477956 Aligning text with its bullet 2017-12-31 18:41:46 -08:00
hcpl
202f23ce02 Fix version replacement notes for CI in README.md 2017-12-27 19:41:42 +02:00
Christopher Durham
54faea0797 Mention un/stable configuration in README 2017-12-16 21:03:51 -05:00
Nick Cameron
7a4daf0d41
Fix CI instructions in README.md
Closes #2285
2017-12-15 23:59:06 +13:00
Nick Cameron
643ef24b46 Remove some out of date text from README.md 2017-11-22 07:25:36 +13:00
Seiichi Uchida
1a69aebe6c
Update README.md 2017-11-15 15:19:32 +09:00
Martin Lindhe
f930a16b8d fix some typos 2017-11-01 07:33:55 +01:00
Nick Cameron
34cb29a26d Merge pull request #2060 from tamird/doc-dump-default-config
Document `--dump-default-config` in README.md
2017-10-16 22:29:30 +07:00
Saulo Silva
50a138a5ab
Document --dump-default-config in README.md
Fixes #317.
2017-10-14 07:51:57 -04:00
Benjamin Gill
ee33cdf120 Add crates.io version shield 2017-10-13 11:46:00 +01:00
Markus Westerlind
0c44732136 Explain how to solve missing dll's on Windows
cc #1736
2017-08-12 09:38:12 +02:00
Nick Cameron
6984c05e69 Change the writemode to overwrite 2017-07-21 11:22:51 +12:00
Nick Cameron
ef6383011f Add tip about LD_LIBRARY_PATH to README
closes #1707
2017-07-14 09:02:40 +12:00
Seiichi Uchida
8b681e06fd Update README.md: add 'rustup update' 2017-07-10 13:46:36 +09:00
Andy Russell
75ec25a2ca remove link to old style guidelines
Fixes #1564.
2017-06-21 13:45:24 -04:00
Nick Cameron
562d218ce9 Update README for running the nightly version 2017-06-16 12:00:43 +12:00