1 # This rustfmt file is added for configuration, but in practice much of our
2 # code is hand-formatted, frequently with more readable results.
5 normalize_comments = true
7 format_doc_comments = true
8 comment_width = 90 # small excess is okay but prefer 80
11 use_small_heuristics = "max"
12 fn_args_density = "compressed"
13 fn_single_line = false
14 overflow_delimited_expr = true
15 where_single_line = true
17 # enum_discrim_align_threshold = 20
18 # struct_field_align_threshold = 20
21 edition = "2018" # we require compatibility back to 1.32.0
24 blank_lines_upper_bound = 2
25 reorder_impl_items = true
26 # report_todo = "Unnumbered"
27 # report_fixme = "Unnumbered"