-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
31 lines (25 loc) · 745 Bytes
/
rustfmt.toml
File metadata and controls
31 lines (25 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# =============================================================================
# Rustfmt Configuration - Stable Options Only
# =============================================================================
# Run with: cargo fmt
# Check with: cargo fmt --check
# Edition
edition = "2021"
# Maximum line width
max_width = 100
# Use 4 spaces for indentation
tab_spaces = 4
hard_tabs = false
# Imports (stable)
reorder_imports = true
reorder_modules = true
# Match formatting (stable)
match_arm_leading_pipes = "Never"
match_block_trailing_comma = true
# Other stable options
newline_style = "Unix"
remove_nested_parens = true
use_field_init_shorthand = true
use_try_shorthand = true
force_explicit_abi = true
use_small_heuristics = "Default"