Aleksey Kladov
b3f691fa13
update Cargo.lock to match Cargo.toml
2015-12-23 17:31:54 +03:00
Aleksey Kladov
a70b621607
add option to ignore out of line modules
2015-12-23 17:25:49 +03:00
Nick Cameron
47f473dbd9
Merge pull request #713 from JanLikar/master
...
Add verbose and quiet flags to cargo-fmt
2015-12-21 07:50:02 +13:00
Jan Likar
a5da67f4c4
Add verbose and quiet flags to cargo-fmt
...
Quiet mode supresses rustfmt's stdout, verbose mode prints targets that
are going to be formatted.
2015-12-20 04:19:08 +01:00
Nick Cameron
0b5e6d57e5
Merge pull request #710 from JanLikar/master
...
Remove `--write-mode=replace` from cargo-fmt
2015-12-18 08:43:41 +13:00
Jan Likar
c578ad8df5
Remove --write-mode=replace
from cargo-fmt
...
Since replace is the default rustfmt write mode, there's no need to
call rustfmt with `--write-mode=replace`. As a bonus, it is now also
possible to override the write-mode.
2015-12-17 17:17:43 +01:00
Marcus Klaas de Vries
41169dfdf5
Merge pull request #704 from Sean1708/patch-1
...
Fix spelling mistake in cargo-fmt usage string.
2015-12-16 18:43:19 +01:00
Sean Marshallsay
7f21569351
Fix spelling mistake in cargo-fmt usage string.
2015-12-16 12:18:18 +00:00
Nick Cameron
ecf12778fb
Use replace rather than overwrite for cargo fmt
2015-12-16 18:07:59 +13:00
Nick Cameron
33d20479f2
make cargo install easier
2015-12-16 18:00:40 +13:00
Nick Cameron
909b3560ba
Add quick start info to README.md, cargo update.
2015-12-16 17:58:20 +13:00
Nick Cameron
b37e78974c
Merge pull request #703 from JanLikar/cargo-fmt
...
Add cargo-fmt binary
2015-12-16 17:51:29 +13:00
Jan Likar
1e5e290e39
Allow to pass arguments to rustfmt
2015-12-16 04:48:49 +01:00
Jan Likar
959c2e7bed
Improve README.md
2015-12-16 04:41:58 +01:00
Jan Likar
360f3efce8
Replace locate-project
with read-manifest
...
Use `cargo read-manifest` instead of `cargo locate-project` to get
a list of files to be formatted.
2015-12-16 02:21:43 +01:00
Jan Likar
f5d1c06739
Remove unneeded dependencies
...
Remove dependency on Walkdir, which is no longer needed, because
cargo-fmt now uses cargo read-manifest to get a list of targets to
format.
2015-12-15 23:57:05 +01:00
Jan Likar
169bff0e52
Edit README.md
...
- Add instructions for using cargo run with multiple binaries
- Mention cargo-fmt binary
2015-12-15 01:18:47 +01:00
Jan Likar
623277e7e0
Add cargo-fmt binary
...
Add a new utility, which formats all readable .rs files in the src
directory of the crate using rustfmt. Both binaries can be installed
using cargo install rustfmt. cargo-fmt can be used as a Cargo
subcommand - cargo fmt.
2015-12-14 15:50:19 +01:00
Jan Likar
681245f3fb
Update Cargo.lock
2015-12-14 15:49:46 +01:00
Jan Likar
ec509b0517
Change Cargo.toml
...
Change Cargo.toml to include cargo-fmt's dependencies and add a
default cargo-fmt feature to enable users to only build rustfmt
if they don't need cargo-fmt.
2015-12-14 15:32:03 +01:00
Marcus Klaas de Vries
d42383e3ed
Merge pull request #697 from rust-lang-nursery/crates
...
Use crates.io for everything
2015-12-13 20:20:29 +01:00
Nick Cameron
beabc60575
Fix the notes on running rustfmt
2015-12-14 08:17:26 +13:00
Nick Cameron
78957d371e
Use crates.io for everything
2015-12-14 08:03:58 +13:00
Nick Cameron
8983037db6
Merge pull request #695 from marcusklaas/string-rewrite-backslash
...
Prevent backslash stripping in string literals
2015-12-14 07:50:56 +13:00
Nick Cameron
c9df844423
Merge pull request #694 from marcusklaas/master1001
...
Don't panic on function return type rewrite failure
2015-12-14 07:50:16 +13:00
Marcus Klaas
8cccf45d43
Prevent backslash stripping in string literals
2015-12-12 16:25:01 +01:00
Marcus Klaas
2636fed5f3
Don't panic on function return type rewrite failure
2015-12-12 15:41:10 +01:00
Marcus Klaas de Vries
e20722ab5d
Merge pull request #693 from vincenting/master
...
add sublime text 3 binding plugin link
2015-12-12 14:44:31 +01:00
vincenting
478606e384
add sublime text 3 binding plugin link
2015-12-12 10:11:09 +08:00
Nick Cameron
154ecff980
Merge pull request #681 from rust-lang-nursery/comment-style
...
Add normalise_comments option.
2015-12-10 09:32:11 +13:00
Nick Cameron
f8cb1baadd
Add normalise_comments option.
...
So block comments are not converted to line comments
2015-12-10 09:29:03 +13:00
Nick Cameron
e94bd34a06
cargo upgrade, bug fix, and prepare for packaging
2015-12-08 16:19:23 +13:00
Nick Cameron
585b071aa1
Merge pull request #678 from marcusklaas/length-one-tuplez
...
Fixed named arguments in bare function types
2015-12-07 09:01:38 +13:00
Nick Cameron
db72e0390c
Merge pull request #664 from marcusklaas/fix-reformat-failurez
...
Don't include failed item rewrites in missed spans
2015-12-07 08:33:02 +13:00
Nick Cameron
397449b292
Merge pull request #668 from marcusklaas/regression-tests
...
Regression tests
2015-12-07 08:10:06 +13:00
Nick Cameron
f569144bbf
Merge pull request #666 from marcusklaas/matches-5000
...
Break function headers earlier
2015-12-07 08:07:23 +13:00
Nick Cameron
26297c56df
Merge pull request #615 from JanLikar/version
...
Add --version switch
2015-12-07 07:32:16 +13:00
Marcus Klaas
97e4e7e5ba
Fixed named arguments in bare function types
2015-12-06 01:11:26 +01:00
Marcus Klaas de Vries
22353ca8c7
Merge pull request #674 from Ms2ger/start
...
Use starts_with to avoid panics.
2015-12-04 16:37:59 +01:00
Marcus Klaas de Vries
80d1552ec0
Merge pull request #673 from Manishearth/clippy
...
Minor clippy fixes r? @nrc
2015-12-04 16:37:32 +01:00
Ms2ger
1ed36a3a6b
Use starts_with to avoid panics.
2015-12-04 16:10:14 +01:00
Manish Goregaokar
f61ba91c2d
Minor clippy fixes
2015-12-04 18:02:19 +05:30
Marcus Klaas
ea6ce22a16
Add regression test for overlong trait methods
2015-12-02 21:08:09 +01:00
Marcus Klaas
9734bd05af
Add regression test for backslash stripping
2015-12-02 21:03:41 +01:00
Marcus Klaas de Vries
34737529db
Merge pull request #667 from Marwes/alias_where
...
Fix missed edgecases in formatting of type aliases
2015-12-02 20:45:01 +01:00
Markus Westerlind
a6b0d475f4
Don't remove where clauses in type aliases
2015-12-02 20:11:17 +01:00
Markus Westerlind
ae9ad7b288
Fix formatting of type aliases where '=' is at or close to the max width
2015-12-02 20:11:10 +01:00
Marcus Klaas de Vries
e677f05805
Merge pull request #659 from Marwes/where_clause
...
Fix where clauses not taking the width of the line into account
2015-12-02 19:06:24 +01:00
Marcus Klaas de Vries
0c5de26ef2
Merge pull request #663 from SingingTree/match_trailing_comma
...
WIP: Trailing commas for match block arms
2015-12-02 19:05:04 +01:00
Bryce Van Dyk
74d40c042f
Update block checking code
2015-12-02 16:44:40 +13:00