-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
186 lines (125 loc) · 3.18 KB
/
rustfmt.toml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Copyright 2021 Florian Eich <[email protected]>
#
# This work is licensed under the Apache License, Version 2.0. You should have
# received a copy of this license along with the source code. If that is not
# the case, please find one at http://www.apache.org/licenses/LICENSE-2.0.
# false | true
unstable_features = true
# "Block" | "Visual"
indent_style = "Visual"
# "Default" | "Off" | "Max"
use_small_heuristics = "Default"
# "Front" | "Back"
binop_separator = "Front"
# true | false
combine_control_expr = true
# 80 | [any positive integer]
comment_width = 79
# false | true
condense_wildcard_suffixes = false
# "AlwaysSameLine" | "AlwaysNextLine" | "ClosingNextLine"
control_brace_style = "AlwaysSameLine"
# false | true
disable_all_formatting = false
# false | true
error_on_line_overflow = false
# false | true
error_on_unformatted = false
# "Tall" | "Compressed" | "Vertical"
fn_args_layout = "Tall"
# "SameLineWhere" | "AlwaysNextLine" | "PreferSameLine"
brace_style = "PreferSameLine"
# true | false
empty_item_single_line = true
# 0 | [any positive integer]
enum_discrim_align_threshold = 0
# false | true
fn_single_line = false
# false | true
where_single_line = true
# true | false
force_explicit_abi = true
# false | true
format_strings = true
# false | true
format_macro_matchers = false
# true | false
format_macro_bodies = true
# false | true
hard_tabs = false
# "Block" | "Visual"
imports_indent = "Visual"
# "Mixed" | "Horizontal" | "HorizontalVertical" | "Vertical"
imports_layout = "HorizontalVertical"
# false | true
imports_granularity = "Crate"
# false | true
match_block_trailing_comma = false
# 100 | [any positive integer]
max_width = 79
# true | false
merge_derives = true
# false | true
force_multiline_blocks = false
# "Auto" | "Native" | "Unix" | "Windows"
newline_style = "Unix"
# false | true
normalize_comments = true
# true | false
remove_nested_parens = true
# true | false
reorder_imports = true
# true | false
reorder_modules = true
# false | true
reorder_impl_items = true
# "Never" | "Always" | "Unnumbered"
report_todo = "Never"
# "Never" | "Always" | "Unnumbered"
report_fixme = "Never"
# false | true
skip_children = false
# true | false
space_after_colon = true
# false | true
space_before_colon = false
# 0 | [any positive integer]
struct_field_align_threshold = 20
# false | true
spaces_around_ranges = false
# true | false
struct_lit_single_line = true
# 4 | [any positive integer]
tab_spaces = 2
# "Vertical" | "Always" | "Never" | "Vertical"
trailing_comma = "Vertical"
# true | false
trailing_semicolon = true
# "Wide" | "Compressed"
type_punctuation_density = "Wide"
# false | true
use_field_init_shorthand = false
# false | true
use_try_shorthand = false
# false | true
format_code_in_doc_comments = true
# false | true
wrap_comments = true
# true | false
match_arm_blocks = true
# false | true
overflow_delimited_expr = false
# 1 | [any positive integer]
blank_lines_upper_bound = 2
# 0 | [any positive integer]
blank_lines_lower_bound = 0
# false | true
hide_parse_errors = false
# "Auto" | "Always" | "Never"
color = "Auto"
# "2015" | "2018"
edition = "2018"
# "One" | "Two"
version = "Two"
# false | true
normalize_doc_attributes = false