# -----------------------------------------------------------------------------
# Forge Rust at night. Ship the Future at dawn.
# -----------------------------------------------------------------------------
# Formatter profile: nightly
# Run with: rustup run nightly cargo fmt
# -----------------------------------------------------------------------------
# Core language profile
= "2024" # Target edition
= 100 # Hard line width budget
= false # Spaces over tabs
= 4 # Visual tab width
# Heuristics
= "Default" # rustfmt defaults
# Functions and clauses
= "Vertical" # Vertical params when wrapping is needed
# Impl and punctuation behavior
= true # Normalize item order inside impl blocks
= "Vertical" # Trailing commas on multiline forms
= true # Explicit ABI in extern functions
= false # Keep author-controlled comment wrapping
# Struct/enum formatting
= 80 # Struct literal wrapping width
= 0 # Disable alignment padding for fields
= 0 # Disable alignment padding for discriminants
# Imports
= "Module" # Group imports at module scope
= "StdExternalCrate" # std -> external -> crate ordering
= true # Sort imports alphabetically