EVERYTHING XIAOMI
Get listed
Side by side

Ormolu vs rustfmt

Ormolu

6.4#9 in code formatting toolsFree plan
Free planWebLinuxmacOSWindows
Visit

rustfmt

6.7#2 in code formattersFree plan
Free planLinuxmacOSWindows
Visit

What both publish

FactOrmolurustfmt
Editor integrationsThe README lists integrations for Emacs, VS Code, and Vim through neoformat or vim-ormolu.The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion.
LicenseThe project’s license permits redistribution and use in source and binary forms subject to stated conditions and provides the software “as is.”rustfmt is distributed under both the MIT License and Apache License 2.0.
LimitationsCPP support is experimental and works only in simple cases where CPP conditionals surround top-level declarations.The README lists limitations involving unparsable code, macros, comments, code fragments, non-ASCII Unicode, and bugs.
PurposeOrmolu is a formatter for Haskell source code.rustfmt formats Rust code according to style guidelines.

Ormolu plans

  • OrmoluFree

rustfmt plans

  • rustfmtFree

Pick Ormolu if…

Ormolu suits Haskell developers who want a single shared formatting style across editors or CI. It also offers a browser version for trying the formatter without installing the desktop binaries.

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