rustfmt
https://github.com/rust-lang/rustfmt
Rust
Format Rust code
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported5 Subscribers
Add a CodeTriage badge to rustfmt
Help out
- Issues
- Error formatting with block comment after match scrutinee
- the inability to comment every non-obnoxious token without leftover whitespace before or after
- Fix idempotency issue with raw strings
- Style frontmatter according to the style guide
- [DO NOT MERGE] subtree-push nightly-2025-12-06
- add flag to force newlines in let else statements
- Tuples or methods with two `unsafe` blocks are ugly formatted
- Rustfmt generates invalid code for associated type bounds with where-clause and comments
- Format paths in `derive` attribute
- cargo fmt fails to format code when using symlinks
- Docs
- Rust not yet supported