#cargo #rustfmt #fmt

yanked cargo-fmt

Call rustfmt from cargo

Uses old Rust 2015

0.1.0 Oct 7, 2015

#29 in #rustfmt

MIT/Apache

3KB

Cargo-fmt

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.

Install

$ git clone https://github.com/pwoolcoc/cargo-fmt
$ cd cargo-fmt
$ cargo build --release
$ cp target/release/cargo-fmt /usr/local/bin/

Dependencies

~4KB