EVERYTHING XIAOMI
Get listed
Side by side

rustfmt vs Scalafmt

rustfmt

6.7#2 in code formattersFree plan
Free planLinuxmacOSWindows
Visit
Scalafmt logo

Scalafmt

6.0#24 in code formatting toolsFree plan
Free planLinuxmacOSSelf-hostedWindows
Visit

What both publish

FactrustfmtScalafmt
ConfigurationConfiguration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide.Formatting options are set in a plain text .scalafmt.conf file using HOCON syntax.
Editor integrationsThe README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion.The documentation describes use with IntelliJ, VS Code, Vim, NeoVim, Emacs, Sublime Text, and Eclipse, with Metals supporting formatting requests from editors.
Licenserustfmt is distributed under both the MIT License and Apache License 2.0.The GitHub repository identifies the project license as Apache-2.0.
Purposerustfmt formats Rust code according to style guidelines.Scalafmt is a code formatter for Scala that formats code consistently across a team.
SupportThe README points users to `rustfmt --help` and `cargo fmt --help` for command usage and arguments.The project site links to a community Discord and GitHub, and the CLI help directs bug reports to GitHub issues.

rustfmt plans

  • rustfmtFree

Scalafmt plans

  • FreeFree

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.

Pick Scalafmt if…

Scalafmt suits Scala developers and teams seeking consistent formatting through editors, build tools, or the command line. It is also relevant for projects using sbt files or Scala scripts.

Charts they share