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
# "Block" style results in smaller diffs and less rightward drift.
= "Block"
= "Block"
= "Mixed"
# Line width.
= 80 # Who need more than 80 characters?.
= true # Error if unable to respect max_width
# Comment.
= 80 # Same as max_width.
= true # Break comments to fit on the line.
= true # Convert /* */ comments to // comments
# Bracing (same line).
= "SameLineWhere"
= "AlwaysSameLine"
# Alphabetical ordering FTW.
= true
# Horizontal spacing.
= true # One space after a colon.
= false # No space before a colon.
= "Wide" # Spaces around + and = in types.
= false # No spaces within empty ()/[].
# Vertical spacing.
= 0 # No minimum required.
= 1 # One line maximum.
# Structure.
= true # Keep small struct literals on a single line.
= 0 # Don't align structures fields.
# Blocks (always use for multiline).
= true
= true
# Trailing comma/semicolon.
= true # Add after break, continue and return.
= "Vertical" # Add only in vertical lists.
= true # Always add a trailing comma.
# Tab characters.
= 4 # A tab character is four spaces.
= false # Don't use tab characters for indentation.
# Misc.
= "Unix" # Only use Unix line endings.
= false # Manual split for long strings.
= false # No special case for single line functions.
= "Front" # When split, put binary operators in front.
= true # Replace try! macro by ? shorthand.
= true # Merge multiple derives into a single one.
= true # Always print the abi for extern items.
= true # Use .. instead of several _ in tuple.
# No strong opinion on these ones: just use the defaults.
= "Auto"
= true
= true
= false