talira

Compare

rustfmtPrettierOrmolu
What it isA tool for formatting Rust code according to style guidelinesAn opinionated code formatter that reprints your code in one consistent styleA formatter for Haskell source code
KindOpen sourceOpen sourceOpen source
Trust0.720.760.55
Stars7044524151075
Last commit2026-11-232026-11-142026-11-24
LicenceMIT OR Apache-2.0MITBSD-3-Clause
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostableYesYesYes
Ways to run it———
SOC 2———
HIPAA———
SSO———
API—No—
Plugins—Yes—
MCP server—No—
CompanyThe Rust Project—Tweag
Features
  • formats Rust code to the style guidelines
  • cargo fmt for whole projects and workspaces
  • --check mode for CI
  • rustfmt.toml or .rustfmt.toml configuration
  • stable and nightly toolchain components
  • editor integrations for Vim, Emacs, VS Code and others
  • opinionated formatting with few options
  • many languages
  • editor integrations
  • --check for CI
  • plugins for more languages
  • uses GHC's own parser
  • one style with no configuration
  • input layout chooses single-line or multi-line output
  • minimal diffs and idempotent output
  • magic comments and regions to leave code unformatted
  • binaries for Linux, macOS and Windows
  • built into haskell-language-server
  • Emacs, VS Code and Vim integrations
  • All 11 features
Limitations
  • Code that doesn't parse, macro declarations and uses, and comments are formatted only partly or not at all
    • CPP support is experimental: Ormolu leaves CPP sections unchanged, which works only when conditionals surround top-level declarations