-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rustfmt.toml
More file actions
91 lines (75 loc) · 1.81 KB
/
Copy path.rustfmt.toml
File metadata and controls
91 lines (75 loc) · 1.81 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# https://rust-lang.github.io/rustfmt
required_version = ">=1.9.0"
edition = "2024"
unstable_features = true
max_width = 160
comment_width = 160
# Lines
binop_separator = "Front"
empty_item_single_line = true
force_multiline_blocks = false
inline_attribute_width = 120
match_arm_blocks = true
newline_style = "Unix"
short_array_element_width_threshold = 8
where_single_line = false
# Braces
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
# Condensing
condense_wildcard_suffixes = true
combine_control_expr = true
fn_params_layout = "Tall"
fn_single_line = true
merge_derives = true
overflow_delimited_expr = true
remove_nested_parens = true
struct_lit_single_line = true
struct_lit_width = 32
struct_variant_width = 32
use_small_heuristics = "Default"
# Literals
hex_literal_case = "Lower"
float_literal_trailing_zero = "Always"
# Tabs
hard_tabs = false
tab_spaces = 4
# Alignment
enum_discrim_align_threshold = 32
struct_field_align_threshold = 32
# Strings
format_strings = false
# Explicitness
force_explicit_abi = true
match_arm_leading_pipes = "Always"
match_block_trailing_comma = true
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
use_try_shorthand = true
# Imports
imports_indent = "Block"
imports_layout = "Mixed"
imports_granularity = "Module"
reorder_imports = true
group_imports = "StdExternalCrate"
reorder_modules = true
skip_children = false
# Indentation
indent_style = "Block"
match_arm_indent = true
# Ordering
reorder_impl_items = true
# Spacing
space_after_colon = true
space_before_colon = false
spaces_around_ranges = false
type_punctuation_density = "Wide"
# Comments
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true
format_code_in_doc_comments = true
# Macros
format_macro_matchers = true
format_macro_bodies = true