-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
rustfmt.toml
25 lines (25 loc) · 755 Bytes
/
rustfmt.toml
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
# https://github.com/kamadorueda/machine/blob/main/nixos-modules/editor/rustfmt.toml
edition = "2021"
enum_discrim_align_threshold = 999
# force_multiline_blocks = true
format_code_in_doc_comments = true
format_generated_files = true
format_macro_bodies = true
format_macro_matchers = true
format_strings = true
group_imports = "StdExternalCrate"
hex_literal_case = "Lower"
imports_granularity = "Item"
imports_layout = "Vertical"
# match_block_trailing_comma = true
max_width = 80
normalize_comments = true
normalize_doc_attributes = true
overflow_delimited_expr = true
reorder_impl_items = true
struct_field_align_threshold = 999
unstable_features = true
use_field_init_shorthand = true
use_small_heuristics = "Max"
version = "Two"
wrap_comments = true