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
# Rustfmt configuration - Maximum strictness
# See: https://rust-lang.github.io/rustfmt/
= "2024"
# Formatting width
= 100
= 4
= false
# Use field init shorthand
= true
# Use try shorthand
= true
# Imports - stable option
= true
= true
# Match arms
= "Never"
= true
# Array/Slices width limits
= 60
= 70
= 60
= 50
= 50
# Function parameters
= "Tall"
# ============================================================================
# UNSTABLE OPTIONS - Require nightly rustfmt
# Uncomment these if using: rustup run nightly cargo fmt
# ============================================================================
# unstable_features = true
# Formatting style
# brace_style = "SameLineWhere"
# control_brace_style = "AlwaysSameLine"
# trailing_comma = "Vertical"
# trailing_semicolon = true
# binop_separator = "Front"
# space_after_colon = true
# space_before_colon = false
# spaces_around_ranges = false
# type_punctuation_density = "Wide"
# Comments
# format_code_in_doc_comments = true
# doc_comment_code_block_width = 80
# wrap_comments = true
# comment_width = 100
# normalize_comments = true
# normalize_doc_attributes = true
# Structs
# struct_lit_single_line = false
# Functions
# fn_single_line = false
# Where clauses
# where_single_line = false
# indent_style = "Block"
# Blank lines
# blank_lines_upper_bound = 1
# blank_lines_lower_bound = 0
# Imports (unstable)
# imports_granularity = "Module"
# group_imports = "StdExternalCrate"
# Match arms (unstable)
# match_arm_blocks = true
# Hexadecimal literal formatting
# hex_literal_case = "Upper"
# Overflow behavior
# overflow_delimited_expr = true
# String formatting
# format_strings = true
# format_macro_matchers = true
# format_macro_bodies = true
# version = "Two"