# RustDupe - rustfmt configuration
#
# This configuration aligns with VS Code settings (100-char ruler, 4-space tabs)
# and enforces consistent formatting across the codebase.
#
# Run: cargo fmt
# Check only: cargo fmt -- --check
# Use Rust 2021 edition formatting rules
= "2021"
# Maximum line width (matches VS Code ruler setting)
= 100
# 4 spaces per indentation level (matches VS Code tabSize)
= 4
# Use balanced heuristics for item layout decisions
# "Default" = balance between line count and readability
= "Default"
# Use Unix-style line endings for cross-platform consistency
= "Unix"
# Reorder imports alphabetically
= true
# Reorder modules alphabetically
= true
# Use field init shorthand where possible (e.g., `Point { x }` vs `Point { x: x }`)
= true
# Use try shorthand `?` where possible
= true