-
Notifications
You must be signed in to change notification settings - Fork 3
/
rustfmt.toml
69 lines (55 loc) · 1.34 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
# This rustfmt file is added for configuration, but in practice much of our
# code is hand-formatted, frequently with more readable results.
# Todo: report_todo and report_fixme
# Modules
reorder_modules = true
reorder_impl_items = true
merge_derives = true
# Style
## Braces
brace_style = "SameLineWhere"
## Spaces
tab_spaces = 4
spaces_around_ranges = false
space_before_colon = false
space_after_colon = true
inline_attribute_width = 0
indent_style = "Block"
## Punctuation
type_punctuation_density = "Wide"
trailing_semicolon = true
trailing_comma = "Vertical"
match_block_trailing_comma = true
# Function
fn_single_line = false
fn_args_layout = "Tall"
# fn_call_width = 60
force_multiline_blocks = false
# Imports
reorder_imports = true
imports_granularity = "Item"
imports_layout = "Horizontal"
imports_indent = "Block"
group_imports = "StdExternalCrate"
# Comments:
normalize_comments = true
wrap_comments = true
normalize_doc_attributes = true
comment_width = 100
# report_todo = "Unnumbered"
# report_fixme = "Unnumbered"
# Where Clauses
where_single_line = false
# Compatibility
edition = "2018"
# TODO
use_field_init_shorthand = true
# General
max_width = 100
use_small_heuristics = "Default"
overflow_delimited_expr = true
blank_lines_upper_bound = 3
# Ignored
ignore = []
# enum_discrim_align_threshold = 20
# struct_field_align_threshold = 20