Rust Formatter

Open-source Rust projects categorized as Formatter

Top 13 Rust Formatter Projects

  • rustfmt

    Format Rust code

    Project mention: Let else will finally be formatted by rustfmt soon | /r/rust | 2023-07-03

    The new style still supports single line let-else, and there is a configuration parameter to make it be on one line also for longer lines.

  • biome

    A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

    Project mention: Prettier $20k Bounty was Claimed | | 2023-11-27

    Biome is also working on a feature to only format changed files. See the associated PR [0] for more details.


  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • dprint

    Pluggable and configurable code formatting platform written in Rust.

    Project mention: How do I stop Prettier from de-structuring object properties onto separate lines? | /r/learnjavascript | 2023-06-14

    Prettier is opinionated. dprint is highly configurable.

  • StyLua

    An opinionated Lua code formatter

  • taplo

    A TOML toolkit written in Rust

    Project mention: Writing a SQL LS in Rust - Looking for Coding Companions. | /r/rust | 2023-01-15

    You might find useful this:

  • nixpkgs-fmt

    Nix code formatter for nixpkgs [maintainer=@zimbatm]

  • treefmt

    one CLI to format your repo

    Project mention: The Ruff python linter is insanely good | /r/Python | 2023-03-16

    In the same vein as LSP/pre-commit/Ruff/Black, I found the treefmt (rust) project very promising.

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • cbfmt

    A tool to format codeblocks inside markdown and org documents.

    Project mention: null-ls-embedded - Format embedded code using null-ls | /r/neovim | 2022-12-02 also exists as a standalone tool for this

  • prettier-plugin-rust

    Prettier Rust is an opinionated code formatter that autocorrects bad syntax.

    Project mention: Is rustfmt abandoned? Will it ever format `let ... else` syntax? | /r/rust | 2023-06-03

    Same code formatted by Prettier Rust

  • sleek

    Sleek is a CLI tool for formatting SQL. It helps you maintain a consistent style across your SQL code, enhancing readability and productivity. (by nrempel)

    Project mention: What SQL formatter do you use? What can give you Intellij like formatting for SQL? | /r/neovim | 2023-04-19
  • genemichaels

    Even formats macros

    Project mention: Minimalist Rust formatter as an alternative to rustfmt? | /r/rust | 2023-03-19

    There are alternatives to rustfmt: Prettier Rust and genemichaels

  • untex

    Understand and manipulate TeX files with ease

    Project mention: UnTeX - Parsing and formatting TeX documents with Rust - Looking for help | /r/rust | 2023-01-27

    Currently, UnTeX is still in beta, and only few commands are implemented. I recommend you read the README or the docs if you are interested in knowing more :-) I think the core foundations are already there.

  • tyupy

    Get URL(s) title in any format 🐿️

    Project mention: Tyupy v1.1.0 released! 🎉 | /r/rust | 2023-11-21
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-11-27.

Rust Formatter related posts


What are some of the best open-source Formatter projects in Rust? This list will help you:

Project Stars
1 rustfmt 5,489
2 biome 4,102
3 dprint 2,625
4 StyLua 1,199
5 taplo 950
6 nixpkgs-fmt 495
7 treefmt 393
8 cbfmt 151
9 prettier-plugin-rust 144
10 sleek 76
11 genemichaels 74
12 untex 24
13 tyupy 7
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives