Allows you to call rustfmt
through cargo
. Useful when using
cargo-do
, as it allows you to do cargo do fmt, build
.
Right now there is a restriction that you have to run it from the top level of your project, it won't search up the directory tree like cargo will.
There is also no way, right now, to pass arguments through to rustfmt
.
bash
$ git clone https://github.com/pwoolcoc/cargo-fmt
$ cd cargo-fmt
$ cargo build --release
$ cp target/release/cargo-fmt /usr/local/bin/