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
# Notes:
# - run this on Linux to fix Windows changing .rs files to +x:
# `find . -name "*.rs" -exec chmod -x {} \;`
# Don't format libraries that have been vendored in
= [
"libs/mass-storage/**",
"loader/curve25519-dalek-loader/**",
"loader/ed25519-dalek-loader/**",
"loader/sha2-loader/**",
"imports/getrandom/**",
]
# I can't rely on contributors using .editorconfig
= "Unix"
# require the shorthand instead of it being optional
= true
# outdated default — `?` was unstable at the time
# additionally the `try!` macro is deprecated now
= true
# Computers in the 90's had 132 column displays[1], and the displays were 1/6th the area.
# 110 columns doesn't seem like a big stretch...
# [1] https://en.wikipedia.org/wiki/VGA_text_mode
= 110
# Max to use the max width for everything or Default. See https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#use_small_heuristics
= "Max"
# Unstable features below
= true
= "2024"
# code can be 110 characters, why not comments?
= 110
# quicker manual lookup
= "StdExternalCrate"
# why use an attribute if a normal doc comment would suffice?
= true
# why not?
= true
= true
= true
= false
= true
= true
= true
# this helps with merges, even though it destroys logical cohesion
= true
= true