# rustfmt

Keep Rust formatting reproducible

Check formatting across workspace crates with the pinned Rust toolchain. Verify the same edition and formatter configuration used by contributors.

Category: Formatting
Languages: Rust

## Standard evidence

Rubric v1 · 5/8 verified · 3 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Rustfmt formats Rust source under the configured style edition. Upstream documents limitations, including some macro inputs. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/rust-lang/rustfmt/master/README.md)
- **Measurement** (verified) — --check compares input against Rustfmt's output and reports changes without rewriting files. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/rust-lang/rustfmt/master/README.md)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (verified) — Upstream documents using cargo fmt --all -- --check under CI, with exit 0 for unchanged formatting. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/rust-lang/rustfmt/master/README.md)
- **Getting started** (verified) — Upstream documents installing the rustup component and running cargo fmt on a Cargo project. The check-mode section explains what unchanged and unformatted inputs return. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/rust-lang/rustfmt/master/README.md)
- **Real-world adoption** (verified) — Seikika’s Rust workspace workflow runs cargo fmt --all --check before Clippy and tests. Reviewed 2026-11-28. [Source](https://github.com/seikika/seikika/blob/83a633f9f01eab75d8260695af8a1c02b47dd12c/.github/workflows/ci.yml#L163)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use rustfmt in this repository to meet this standard: Keep Rust formatting reproducible. Check formatting across workspace crates with the pinned Rust toolchain. Verify the same edition and formatter configuration used by contributors. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
cargo fmt --all -- --check
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/rust-lang/rustfmt)
- [Agent skill](/skills/rustfmt/SKILL.md)
