elm-format vs rustfmt
elm-format
github.comrustfmt
rust-lang.github.ioSide by side
| Figure | elm-format | rustfmt |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Code formatters | 7.8 (#5) | 7.9 (#4) |
| Spec score · Code Formatting Tools | 7.9 (#11) | 8.0 (#10) |
| Editor integrations | The README lists integrations for Atom, Light Table, Vim, Emacs, Visual Studio Code, Sublime Text, JetBrains IDEs, and TextMate. | The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion. |
| Install | The README documents installation with npm install -g elm-format or by downloading a release binary. | The README installs rustfmt as a component through rustup. |
| License | The repository identifies its license as BSD-3-Clause. | rustfmt is distributed under both the MIT License and Apache License 2.0. |
| Purpose | elm-format formats Elm source code according to rules based on the official Elm Style Guide. | rustfmt formats Rust code according to style guidelines. |
Plans
In their own words
rustfmt
rustfmt formats Rust code according to style guidelines. It can format files directly or read code from standard input and write formatted output to standard output. With Cargo, `cargo fmt` formats binary and library targets in a crate and works with workspaces. A `rustfmt.toml` or `.rustfmt.toml` file can hold configuration, including stable and nightly-only options. For automated checks, `--check` returns code 0 when no formatting changes are needed and code 1 when changes would be made; it can be used in CI to fail a build on formatting differences. The README lists editor use with Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, IntelliJ, and CLion. Rustfmt is available on Windows, macOS, and Linux, and is distributed under the MIT License and Apache License 2.0. It does not attempt to format comments, and listed limitations also involve macros, unparsable code, fragments, and non-ASCII Unicode. Unstable settings require opt-in on nightly, and the README says the latest version requires the nightly toolchain.