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
# source of truth: the most recent version of the formatting configuration can be found at
# https://gitea.basebox.health/basebox/broker/issues/24
#
# running:
# make sure to run with nightly rustfmt, e.g. `cargo +nightly fmt`
= 2
# 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
# Max to use the 100 char 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 100 characters, why not comments?
= true
= 100
# force contributors to follow the formatting requirement
= true
# next 4: why not?
= true
= true
= true
= true
# better grepping
= "Module"
# quicker manual lookup
= "StdExternalCrate"
# why use an attribute if a normal doc comment would suffice?
= true
# trailing semicolon for explicit returns
= true
= 20
= false
= 0
= 0
= false
= "PreferSameLine"
# Some wanted formatting which rustfmt dislikes should be left alone, e.g.
# I want to decide when and if I wrap chained methods.
= false