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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# rustfmt configuration
# https://rust-lang.github.io/rustfmt/
# --- Stable options (work on stable Rust) ---
# Edition to use for parsing
= "2024"
# Maximum width of each line
= 100
# Number of spaces per tab
= 4
# Use spaces instead of tabs
= false
# Use field init shorthand (e.g., `Point { x, y }` instead of `Point { x: x, y: y }`)
= true
# Reorder imports and modules alphabetically
= true
= true
# Newline style
= "Unix"
# Add trailing comma after last match arm in a multi-line block
= true
# Max element width before breaking short arrays into multiple lines
= 10
# Single-line let-else style
= 50
# --- Unstable options (require nightly rustfmt) ---
# To use these, run: cargo +nightly fmt
# Uncomment when running nightly, or use a separate rustfmt-nightly.toml.
#
# version = "Two"
# indent_style = "Block"
# fn_single_line = false
# where_single_line = false
# format_strings = false
# wrap_comments = true
# comment_width = 100
# normalize_doc_attributes = true
# format_code_in_doc_comments = true
# empty_item_single_line = true
# struct_lit_single_line = true
# struct_field_align_threshold = 0
# format_macro_bodies = true
# format_macro_matchers = true
# imports_granularity = "Crate"
# group_imports = "StdExternalCrate"
# trailing_comma = "Vertical"
# trailing_semicolon = true
# match_arm_blocks = true
# brace_style = "SameLineWhere"
# control_brace_style = "AlwaysSameLine"
# reorder_impl_items = true
# hex_literal_case = "Upper"
# space_before_colon = false
# space_after_colon = true
# spaces_around_ranges = false
# type_punctuation_density = "Wide"
# error_on_line_overflow = false
# error_on_unformatted = false