rustfmt
6.7#2 in code formattersFree planFree planLinuxmacOSWindows
Visit| Fact | rustfmt | shfmt |
|---|---|---|
| Configuration | Configuration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide. | shfmt reads formatting options from EditorConfig files when parser or printer flags are not provided. |
| Editor integrations | The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion. | Listed integrations include JetBrains shell plugins, micro, NeoVim, VS Code, Emacs, and Trunk. |
| Purpose | rustfmt formats Rust code according to style guidelines. | shfmt formats shell programs and is included in a shell parser, formatter, and interpreter project. |
| Support | The README points users to `rustfmt --help` and `cargo fmt --help` for command usage and arguments. | The project asks users to file detailed bug reports and feature requests as issues; sponsorship tiers mention prioritized issues and direct support in a company chat app. |
rustfmt suits Rust developers who want consistent formatting through Cargo, an editor, or CI. It is also relevant to developers who need configurable formatting behavior.
shfmt suits shell developers who want consistent formatting or syntax checks across POSIX Shell, Bash, Zsh, mksh or Bats. Editor integrations and a library API also serve users integrating it into editor or code workflows.