Hacker ApprovedDepartments

rustfmt

Ranked 7 of 7 code formatters by recommenders

Rust's official code formatter, recommended for ending style debates and enforcing one consistent style across projects. Critics find its automatic line breaking and alignment frustrating.

Rust's official code formatter, recommended for ending style debates and enforcing one consistent style across projects. Critics find its automatic line breaking and alignment frustrating.

10 people gave an opinion

recommend it
6
criticize it
4
approval share
60%
Each figure is one person. RecommendsCriticizes

Recommended in 5 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 6 people recommend itNeeds 10 or more, not met.
  • 1.5 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 5 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Ends style debates across teams

    “enforcing the same style ends all of the drama”

    Comment from 2 Nov 2025 on Hacker News

    “strict and deterministic systems like rustfmt”

    Comment from 8 Mar 2026 in “Beagle, a source code management system that stores AST trees”

    “I love gofmt, rustfmt, ruff.”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”
  • Shared config across repositories

    “I've got a `.rustfmt.toml` file in all my repos with hard_tabs = true”

    Comment from 24 May 2026 in “Migrating from Go to Rust”

    “taking a look at fmt & clippy configs helps too”

    Comment from 21 Oct 2026 in “Rust Style Guide”

What people warn about

Each mark is one comment

  • Unpredictable line breaking and alignment

    “The built-in formatter drives me insane it's always choosing or not choosing to line break in places that make zero semantic sense.”

    Comment from 25 Sep 2026 in “Topcoat is pushing the boundary of server applications with Rust”

    “But rustfmt would insist on returning it to this disappointment”

    Comment from 20 Dec 2025 in “Rust's Block Pattern”

    “Guess, another decade before Rust robots can do columns?”

    Comment from 22 Oct 2026 in “Rust Style Guide”
  • Only useful for indentation width

    “It's basically inferior for everything except forcing everyone to use the same indentation width”

    Comment from 24 May 2026 in “Migrating from Go to Rust”

Other code formatters people recommend

The four most recommended other code formatters, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

rustfmt compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
gofmt26584%10—Approved
Black18675%6—Approved
FracturedJson18290%2——
Prettier161062%8——
rustfmtThis page6460%5——
See all 7 code formatters, ranked

What people said

All 10 comments that mention it, newest first. Each links to the original comment.

“Guess, another decade before Rust robots can do columns?”

CriticizesComment from 22 Oct 2026 in “Rust Style Guide”

“taking a look at fmt & clippy configs helps too”

RecommendsComment from 21 Oct 2026 in “Rust Style Guide”

“The built-in formatter drives me insane it's always choosing or not choosing to line break in places that make zero semantic sense.”

CriticizesComment from 25 Sep 2026 in “Topcoat is pushing the boundary of server applications with Rust”

“I love gofmt, rustfmt, ruff.”

RecommendsComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“I've got a `.rustfmt.toml` file in all my repos with hard_tabs = true”

RecommendsComment from 24 May 2026 in “Migrating from Go to Rust”

“It's basically inferior for everything except forcing everyone to use the same indentation width”

CriticizesComment from 24 May 2026 in “Migrating from Go to Rust”

“Clippy and fmt alone often cause the LLM to hit a snag and realize it's mistake”

RecommendsComment from 12 May 2026 in “If AI Writes Your Code, Why Use Python?”

“strict and deterministic systems like rustfmt”

RecommendsComment from 8 Mar 2026 in “Beagle, a source code management system that stores AST trees”

“But rustfmt would insist on returning it to this disappointment”

CriticizesComment from 20 Dec 2025 in “Rust's Block Pattern”

“enforcing the same style ends all of the drama”

RecommendsComment from 2 Nov 2025 on Hacker News

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.