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
- Fix incorrect whitespace modifications to non-rust code blocks
- FR: make disabling `format_generated_files` work with stdin input
- fix: prevent panic when formatting complex generics
- [Tracking] Comment preservation and formatting issues
- matches! macro with ranges prevent formating inside other macro
- Off by one: return type on associated function/method wraps at exactly `max_width`
- cleanup of redundant patterns
- Trailing whitespace remains when passing `--edition 2024`
- Add Support for sorting `#[derive(...)]`
- [Tracking] Formatting failures with all-or-nothing fallback behavior
- Docs
- Rust not yet supported