Commit graph

96 commits

Author SHA1 Message Date
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
Nick Cameron
bd1eff55bb Merge pull request #1615 from Mitranim/patch-1
suggested a better Sublime Text plugin
2017-06-15 17:02:36 +12:00
Nick Cameron
5f1bab26c4 Move to Libsyntax 2017-06-14 14:01:56 +12:00
Nick Cameron
bb215e2b89 Correct README.md 2017-06-13 14:51:54 +12:00
Nick Cameron
32e882789b Change defaults to RFC style 2017-06-13 14:37:04 +12:00
Nelo Mitranim
ae256504a8 suggested a better Sublime Text plugin
RustFmt is much faster than BeautifyRust and preserves scroll position
2017-06-01 00:39:12 +03:00
Nick Cameron
bf9b3fa1d7 Add note about libsyntax branch to README 2017-05-17 19:07:25 +12:00
azyobuzin
39bdd3d24f Add a link of rls_vscode 2017-05-12 20:06:28 +09:00
azyobuzin
40651a4054 Change the link of Visual Studio Code extension
RustyCode is no longer maintained.
2017-05-11 18:55:05 +09:00
Vincent Esche
c994d4e9d7 Add visual configurations guide. 2017-05-01 23:55:18 +02:00
David Ross
a0560e3496 Update travis section of README
This fixes the example travis config to not ignore install errors for rustfmt, while still not trying to overwrite a previous install.

In addition, this rewrites the script: section to include multiple commands in a way that travis can more accurately indicate which failed and which succeeded.
2017-02-26 11:34:32 -08:00
Antoine Gersant
2f6c93b4f7 Fixed broken link to style guidelines (#1245) 2016-12-21 19:32:04 +13:00
Jean SIMARD
091d96f6fa
Update link towards vim documentation 2016-10-10 21:35:07 -04:00
Tim Heaney
7deeee1160 Link to rust-mode.el instead of rustfmt.el
Link directly to rust-mode.el, since rustfmt.el is marked obsolete.
2016-10-05 09:19:21 -04:00
Brett Cannon
3c7e11e810 Put rustfmt on PATH so cargo fmt works on Travis
Closes #1143
2016-09-03 17:30:02 -07:00
Johann Hofmann
c8e871fb4d
Add instructions on how to run rustfmt on Travis
This adds very simplistic instructions on how to run rustfmt on CI.

I also wrote a blog post for more details: http://johannh.me/blog/rustfmt-ci.html
2016-08-24 23:51:36 +02:00
Julien Blanchard
fb1493055b Update README with Rustup.rs instead of multirust 2016-08-03 11:49:09 +02:00
Daniel Campoverde
6380937b59 Multiple config file names feature (#1101)
* Add multiple configuration file names feature

* Add '.rustfmt.toml' in README file

* Clean up configuration file code

* Make config file names constant

* Use only one blank line
2016-08-01 09:32:35 +12:00
Stuart Dootson
c917462a92 Add appveyor CI support 2016-07-15 11:17:15 +01:00
Dato Simó
7c5efd7437 Fix typo in path: ~/cargo/bin → ~/.cargo/bin 2016-06-15 00:48:58 -03:00
nokaa
af4a9fa6f6
Update Vim integration instructions 2016-06-03 02:52:48 -05:00
Kamal Marhubi
e252100cf6 README: Explain that --file-lines ranges are 1-based 2016-05-31 01:35:54 +02:00