blob: 6a2d9d4821546564e1600864f929753f99461611 [file] [log] [blame]
Joel Galenson66036a82020-07-07 13:29:38 -07001# This rustfmt file is added for configuration, but in practice much of our
2# code is hand-formatted, frequently with more readable results.
3
4# Comments:
5normalize_comments = true
6wrap_comments = false
7comment_width = 90 # small excess is okay but prefer 80
8
9# Arguments:
10use_small_heuristics = "Default"
11# TODO: single line functions only where short, please?
12# https://github.com/rust-lang/rustfmt/issues/3358
13fn_single_line = false
14fn_args_layout = "Compressed"
15overflow_delimited_expr = true
16where_single_line = true
17
18# enum_discrim_align_threshold = 20
19# struct_field_align_threshold = 20
20
21# Compatibility:
22edition = "2018" # we require compatibility back to 1.32.0
23
24# Misc:
25inline_attribute_width = 80
26blank_lines_upper_bound = 2
27reorder_impl_items = true
28# report_todo = "Unnumbered"
29# report_fixme = "Unnumbered"
30
31# Ignored files:
32ignore = []