# opt into nightly-only extras
= true
# Preserve the structure of imports and avoid adding spaces in braced use statements
#imports_granularity = "Preserve"
= "Crate"
= "StdExternalCrate"
# Ensure no extra spaces are added inside braced use statements
= true
# Other formatting preferences for better readability
= "2024" # Use Rust 2024 edition formatting rules
= 80 # Adjust line width to avoid excessive wrapping
= false # Use spaces instead of tabs
= 4 # Set indentation to 4 spaces
= true # Keep imports ordered
= true # Keep module declarations ordered
= true # Prefer field initialization shorthand when possible
= true # Auto-wrap comments that exceed max_width
= true # Format Rust code inside doc comments
# Function and closure formatting
= true # Keep short functions in a single line
# Struct and enum formatting
= 50 # Allow struct literals to be compact
= 20 # Align enum discriminants when appropriate