rustfmt
Verified for current stable LTS
Rustfmt Commands
Rustfmt command syntax with verified terminal examples.
Commands
5 commands for Rustfmt
rustfmt Operations
Rustfmt Command: Backup Modified Files Before Formatting
rustfmt --backup <path/to/source.rs> rustfmt Operations
Rustfmt Command: Check File Formatting
rustfmt --check <path/to/source.rs> rustfmt Operations
Rustfmt Command: Format Code With Specific Rust Edition
rustfmt --edition <2015|2018|2021|2024> <path/to/source1.rs path/to/source2.rs ...> rustfmt Operations
Rustfmt Command: Format Code With Specific Style Edition
rustfmt --style-edition <2015|2018|2021|2024> -v <path/to/source1.rs path/to/source2.rs ...> rustfmt Operations
Rustfmt Command: Format File In Place
rustfmt <path/to/source.rs> Suggest a Rustfmt Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Rustfmt workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.