2025-07-24 20:29:10 -04:00
|
|
|
# Rustfmt configuration for polyfill-rs
|
|
|
|
|
# Optimized for readability and consistency
|
2026-01-29 19:07:11 -05:00
|
|
|
#
|
|
|
|
|
# Note: This file is kept compatible with stable `rustfmt` so that local dev and
|
|
|
|
|
# CI (`cargo fmt --all -- --check`) behave consistently.
|
2025-07-24 20:29:10 -04:00
|
|
|
|
|
|
|
|
# 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
|