rust-lang/rustfmt
Format Rust code observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4197
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
6946 stars · 1043 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
rustfmt is the official Rust code formatter that formats Rust code according to standard style guidelines. It integrates with cargo via `cargo fmt` and can be used in CI to enforce consistent code style.
Use cases
- format rust code
- enforce rust style guidelines
- run cargo fmt on a project
- check code formatting in CI
- auto-format rust files
When to choose
- you write Rust and want consistent, idiomatic formatting
- you want to enforce style checks in CI
- you want the official Rust formatter maintained by the Rust project
When to avoid
- your code relies heavily on macros or comments that rustfmt cannot format reliably
- you need to format non-Rust languages
- your code does not parse (rustfmt requires parseable code)
Facets
cli-tool · maturity stable
formatter developer-tools cli developer-tools programming-languages windows cli cross-platform rust code-style cargo-fmt style-guidelines command-line linux macos
2 sources
- readme: https://github.com/rust-lang/rustfmt · fetched 2026-08-28 · 0a5fab6a5650
- homepage: https://rust-lang.github.io/rustfmt/ · fetched 2026-08-29 · f6dad9b048c7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/rustfmt | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="rust-lang/rustfmt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem