Formateur de code Rust
Guide
Formateur de code Rust
Format your Rust code following official rustfmt conventions. Paste your code, configure formatting options, and get clean, consistently styled output matching cargo fmt standards.
Comment utiliser
Paste your Rust code into the editor, select your preferred max line width (80, 100, or 120 characters) and Rust edition (2015, 2018, or 2021), then click Format. The formatted output appears with syntax highlighting, ready to copy or download as a .rs file.
Caractéristiques
- Rustfmt Rules – 4-space indentation, trailing commas, consistent brace placement, and operator spacing
- Configurable Max Width – Choose 80, 100, or 120 character line width
- Edition Support – Format for Rust 2015, 2018, or 2021 edition
- Syntax Highlighting – Color-coded Rust code in both input and output
- Comment Preservation – Inline and block comments are kept intact
- Download as .rs – Save formatted code directly as a Rust source file
- Sample Code – Test with a pre-filled Rust example
Installez nos extensions
Ajoutez des outils IO à votre navigateur préféré pour un accès instantané et une recherche plus rapide
恵 Le Tableau de Bord Est Arrivé !
Tableau de Bord est une façon amusante de suivre vos jeux, toutes les données sont stockées dans votre navigateur. D'autres fonctionnalités arrivent bientôt !
Outils essentiels
Tout voir Nouveautés
Tout voirMise à jour: Notre dernier outil a été ajouté le 10 mars 2026
