# Rustfmt configuration for polyfill-rs
# Optimized for readability and consistency
#
# Note: This file is kept compatible with stable `rustfmt` so that local dev and
# CI (`cargo fmt --all -- --check`) behave consistently.
# Basic formatting
edition = "2021"
max_width = 100
tab_spaces = 4
newline_style = "Unix"
merge_derives = true
use_small_heuristics = "Default"
remove_nested_parens = true
reorder_imports = true
match_block_trailing_comma = true
# Functions
fn_call_width = 60
fn_params_layout = "Tall"
# Arrays and tuples
array_width = 60
# Chains
chain_width = 60