dprint
6.1#17 in code formatting toolsFree planFree planExtensionLinuxmacOSSelf-hosted
Visit| Fact | dprint | rustfmt |
|---|---|---|
| Configuration | Projects use dprint.json, dprint.jsonc, .dprint.json or .dprint.jsonc files to define plugins, formatting settings, includes and excludes. | Configuration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide. |
| Editor integrations | The installation guide lists Visual Studio Code, IntelliJ and Neovim integrations, with the dprint language-server command usable by other editors. | The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion. |
| License | The dprint GitHub repository is marked MIT licensed. | rustfmt is distributed under both the MIT License and Apache License 2.0. |
| Purpose | dprint is a command-line application that automatically formats code. | rustfmt formats Rust code according to style guidelines. |
| Support | The official contact page directs users to email [email protected]. | The README points users to `rustfmt --help` and `cargo fmt --help` for command usage and arguments. |
dprint suits developers who want configurable automated formatting in command-line, editor, or CI workflows. Teams should distinguish sandboxed WebAssembly plugins from executable process plugins.
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.