Create a rustfmt.toml and add to CI
A code style should be picked and a rustfmt.toml
should be generated for this project. Then we should add a line to the .travis.yml
script with something like the following.
- cargo fmt -- --write-mode=diff
NB: There are a few things that make this a bit more difficult than running cargo fmt
at the moment.
- A submodule e.g.
cbindgen
,ralloc
, orva_list
may not be formatted the same as this project. - We currently visually align constants. AFAIK there is not a way to make rustfmt do this.