aboutsummaryrefslogtreecommitdiffstats
path: root/rustfmt.toml
diff options
context:
space:
mode:
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml33
1 files changed, 33 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..32fb2b2
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1,33 @@
1array_width = 80
2attr_fn_like_width = 60
3chain_width = 50
4comment_width = 80
5condense_wildcard_suffixes = true
6style_edition = "2024"
7fn_call_width = 80
8fn_single_line = true
9format_code_in_doc_comments = true
10format_macro_bodies = true
11format_macro_matchers = true
12format_strings = true
13group_imports = "StdExternalCrate"
14hex_literal_case = "Upper"
15imports_granularity = "Crate"
16match_arm_blocks = false
17match_arm_leading_pipes = "Always"
18match_block_trailing_comma = true
19max_width = 98
20newline_style = "Unix"
21normalize_comments = false
22overflow_delimited_expr = true
23reorder_impl_items = true
24reorder_imports = true
25single_line_if_else_max_width = 60
26single_line_let_else_max_width = 80
27struct_lit_width = 40
28tab_spaces = 4
29use_field_init_shorthand = true
30use_small_heuristics = "Off"
31use_try_shorthand = true
32wrap_comments = true
33unstable_features = true