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
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#force_multiline_blocks
# I find this configuration to be the most readable for multiline closures and
# match arm bodies.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#format_code_in_doc_comments
# I understand why this is off by default, but I can't be bothered to manually
# format code in doc comments and pray it's correct.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#format_generated_files
# I mean, might as well do less work. All the code I generate is formatted
# automatically anyway when it's built.
= false
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#format_macro_matchers
# Deterministic formatting is best formatting.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#format_strings
# Call it OCD, but string literals going past the 100 character mark drive me
# nuts. I'd rather have them be broken up into multiple lines.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#hex_literal_case
# All that matters is that it's consistent. I prefer lowercase.
= "Lower"
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#imports_layout
# I find that this works best for me. I think the default "Mixed" option is too
# chaotic.
= "HorizontalVertical"
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#imports_granularity
# I need this to be anything but "Preserve". I like my formatting to be
# deterministic. I find this to be the most readable, but I remember the old
# days when I manually did the "One" style.
= "Module"
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#newline_style
# I always use Unix line endings. I sometimes fuck up other configurations where
# Windows line endings get mixed in. I don't know how. Regardless, anything to
# save me from that hell.
= "Unix"
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#normalize_comments
# Normalize all the things. I think the `/* */` style of comments in Rust are
# entirely unnecessary.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#normalize_doc_attributes
# I want doc attributes to be reserved for when they need to be interpolated.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#overflow_delimited_expr
# This is definitely the most subjective change. I find that some APIs where you
# call it with multiple structs get so needlessly spaced out that it actually
# hinders readability.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#group_imports
# I NEED deterministic imports to be a thing. "One" is just silly, so this
# configuration is the most readable for me.
= "StdExternalCrate"
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#use_field_init_shorthand
# I mean, it's just less typing. I don't see why you wouldn't want this.
= true
# https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#wrap_comments
# Please and thank you.
= true