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
# Sorts the import statements alphabetically
= true
# Groups imports by standard library, external crates, and local modules
= "StdExternalCrate"
# Groups imports at the crate level
= "Crate"
# Maximum width of each line
= 120
# Whether or not to use hard tabs (false means using spaces)
= false
# Number of spaces per indentation level when using spaces
= 4
# Line ending style (supports 'Unix' or 'Windows')
= "Unix"
# Controls the maximum width of a single comment line. If a comment exceeds
# this width, it will be wrapped automatically. This setting helps keep comments
# within a reasonable line length, improving readability and maintaining a
# consistent style.
= 120
# Ensures each line is within the max_width limit
= true
# Breaks long chain calls into multiple lines to avoid exceeding max_width
= true
# Reorders items within modules
= true
# Adds visibility modifiers (pub, pub(crate), etc.) on each field’s left side in structs
= 0
# Keeps code blocks clean by using vertical whitespace
= "SameLineWhere"