-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rustfmt.toml
40 lines (37 loc) · 1.16 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
edition = "2021"
hard_tabs = false
match_block_trailing_comma = true
max_width = 80
merge_derives = true
newline_style = "Unix"
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_small_heuristics = "Max"
# -----------------------------------
# Unstable options we would like to use in future
# -----------------------------------
# blank_lines_lower_bound = 1
# condense_wildcard_suffixes = true
# enum_discrim_align_threshold = 20
# fn_single_line = true
# format_code_in_doc_comments = true
# format_strings = true
# group_imports = "StdExternalCrate"
# hex_literal_case = "Lower"
# imports_granularity = "Module"
# imports_layout = "HorizontalVertical"
# indent_style = "Block"
# inline_attribute_width = 50
# match_arm_blocks = true
# normalize_comments = true
# normalize_doc_attributes = true
# overflow_delimited_expr = true
# reorder_impl_items = true
# struct_field_align_threshold = 20
# struct_lit_single_line = true
# trailing_comma = "Vertical"
# trailing_semicolon = true
# where_single_line = true
# wrap_comments = true