rustfmt
6.7#2 in code formattersFree planFree planLinuxmacOSWindows
Visit| Fact | rustfmt | Spotless |
|---|---|---|
| Editor integrations | The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion. | The README links Spotless integrations for VS Code and IntelliJ. |
| License | rustfmt is distributed under both the MIT License and Apache License 2.0. | The GitHub repository identifies its license as Apache-2.0. |
| Purpose | rustfmt formats Rust code according to style guidelines. | Spotless formats source code and can check files for formatting violations or apply fixes. |
| Security contact | The Rust Security Response Working Group handles vulnerability reports and security issues for rust-lang organization repositories. | The repository asks users to email [email protected] for security disclosures. |
| Support | The README points users to `rustfmt --help` and `cargo fmt --help` for command usage and arguments. | DiffPlug directs questions to its forum and lists a technical support contact on its About page. |
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.
Spotless suits developers and teams that want formatting checks or fixes integrated with their build tools and editors. It can be used across projects with different languages and build environments.