# Base Formatting Rules
= 120 # Maximum line width (default: 100)
= 4 # Indentation with 4 spaces
= "2021" # Rust edition (align with Cargo.toml)
# Comment Styling
= true # Wrap long comments
= 100 # Max width for comments
# Function and Expression Formatting
= "Vertical" # Align function arguments vertically
= true # Keep short `where` clauses on one line
= true # Allow line breaks within delimited expressions
# Import Organization
= true # Alphabetically sort imports
= "Item" # Each crate is imported on a separate line
= "StdExternalCrate" # Group imports: std > external > local
# Struct and Enum Formatting
= true # Single-line struct literals for single fields
= 4 # Align enum discriminators
# Miscellaneous
= false # Keeps each #[derive] attribute on a separate line
= "Vertical" # Add trailing commas in multi-line blocks
= true # Use shorthand field initialization syntax
= 0