EVERYTHING XIAOMI
Get listed
Side by side

dprint vs rustfmt

dprint

6.1#17 in code formatting toolsFree plan
Free planExtensionLinuxmacOSSelf-hosted
Visit

rustfmt

6.6#4 in code formatting toolsFree plan
Free planLinuxmacOSWindows
Visit

What both publish

Factdprintrustfmt
ConfigurationProjects 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 integrationsThe 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.
LicenseThe dprint GitHub repository is marked MIT licensed.rustfmt is distributed under both the MIT License and Apache License 2.0.
Purposedprint is a command-line application that automatically formats code.rustfmt formats Rust code according to style guidelines.
SupportThe 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 plans

  • Open source dprintFree

rustfmt plans

  • rustfmtFree

Pick dprint if…

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.

Pick rustfmt if…

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.

Charts they share