Skip to content

Formatting

Configured in rustfmt.toml (stable options active):

SettingValue
max_width100
edition2024
tab_spaces4
hard_tabsfalse
use_field_init_shorthandtrue
reorder_importstrue
reorder_modulestrue
newline_styleUnix
match_block_trailing_commatrue

Nightly-only options (imports_granularity, group_imports, trailing_comma, brace_style, etc.) are commented out but documented for when nightly is used.