Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Regueiro 7a3b7c9275 Various cosmetic improvements (#3403) 2019-02-19 11:56:42 +09:00
Evgenii ece629b1cc transition to Rust 2018 2019-02-04 13:30:43 +03:00
Philipp Hansch d0785954c8 Fix trim_right/trim_left deprecation warnings (#3252) 2018-12-18 11:21:31 +09:00
Igor Matuszewski 01847fb321 Ignore checking inexistent .git/HEAD in build.rs 2018-04-27 00:09:01 +02:00
Shotaro Yamada 1d3bc68496 Rerun build.rs only when .git/HEAD or CFG_RELEASE_CHANNEL is changed 2018-04-01 16:48:59 +09:00
Seiichi Uchida ca6fc67e60 Fix print_version 2018-03-17 12:16:15 +09:00
Seiichi Uchida 89f27764ed Cargo fmt and update tests 2017-12-02 17:45:39 +09:00
Nick Cameron a7b8dcc60d Simplify --version info 2017-05-25 16:39:44 +12:00
topecongiro 77a2e9858b Format source codes 2017-05-23 11:37:33 +09:00
Nick Cameron a7612cc773 more fallout 2017-02-23 13:15:48 +13:00
Nick Cameron 9eb78a3333 Fallout 2017-02-23 13:15:48 +13:00
Kamal Marhubi 5361f61110 Include git commit and worktree status in version output (#1060)
This will help in debugging issues as rustfmt gets more users.

If the working tree is clean, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (9f5ed3b)

If the working tree is dirty, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (9f5ed3b worktree dirty)

If git is unavailable, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (git commit unavailable)

To avoid rebuilds on changing tests, the build script will only rerun if
files under src/ are changed. This means the actual git status may show
changed files and this would not show up in the version. This should not
be an issue as files not in src/ should not affect the build output.
2016-06-12 10:38:03 +02:00
Simon Bernier St-Pierre 9ead47151e Add project-specific configuration file support 2015-08-25 19:05:30 -04:00
Nick Cameron 1a09a6d00a Use config file for constants 2015-05-23 17:53:53 +12:00
Nick Cameron aa6f7e8d3c Add default.toml and modify the build system for it 2015-05-23 15:28:41 +12:00