cargo-manifest
Rustfmt configuration
Keep formatting conventions in project-owned configuration. Specify the parsing edition when invoking rustfmt directly; the selected formatter version also matters. Only use settings supported by the installed version. Example format: toml. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): A configuration fragment for a Rust 2024 project; not an executable program. Common mistake: Assuming every unstable formatting setting works on stable.
Formal Syntax & Structure
rust syntaxrust
rustfmt.tomlWorking Example
Example Snippetrust
edition = "2024"max_width = 100