-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
50 lines (39 loc) · 955 Bytes
/
rustfmt.toml
File metadata and controls
50 lines (39 loc) · 955 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Rustfmt configuration for stable Rust 1.92.0
# Only stable features are used to avoid warnings
# General Settings
edition = "2024"
# Width & Line Length
max_width = 100
fn_call_width = 60
attr_fn_like_width = 70
struct_lit_width = 18
struct_variant_width = 35
array_width = 60
chain_width = 60
single_line_if_else_max_width = 50
single_line_let_else_max_width = 50
# Indentation
hard_tabs = true
tab_spaces = 4
# Newlines
newline_style = "Auto"
# Imports
reorder_imports = true
reorder_modules = true
# Expressions
remove_nested_parens = true
short_array_element_width_threshold = 10
# Match Expressions
match_arm_leading_pipes = "Never"
# Functions
fn_params_layout = "Tall"
# Semicolons & Commas
match_block_trailing_comma = false
# Code Style & Syntax
use_small_heuristics = "Default"
merge_derives = true
use_try_shorthand = false
use_field_init_shorthand = false
force_explicit_abi = true
# Error Handling
disable_all_formatting = false