diff options
Diffstat (limited to 'rustfmt.toml')
| -rw-r--r-- | rustfmt.toml | 33 |
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 @@ | |||
| 1 | array_width = 80 | ||
| 2 | attr_fn_like_width = 60 | ||
| 3 | chain_width = 50 | ||
| 4 | comment_width = 80 | ||
| 5 | condense_wildcard_suffixes = true | ||
| 6 | style_edition = "2024" | ||
| 7 | fn_call_width = 80 | ||
| 8 | fn_single_line = true | ||
| 9 | format_code_in_doc_comments = true | ||
| 10 | format_macro_bodies = true | ||
| 11 | format_macro_matchers = true | ||
| 12 | format_strings = true | ||
| 13 | group_imports = "StdExternalCrate" | ||
| 14 | hex_literal_case = "Upper" | ||
| 15 | imports_granularity = "Crate" | ||
| 16 | match_arm_blocks = false | ||
| 17 | match_arm_leading_pipes = "Always" | ||
| 18 | match_block_trailing_comma = true | ||
| 19 | max_width = 98 | ||
| 20 | newline_style = "Unix" | ||
| 21 | normalize_comments = false | ||
| 22 | overflow_delimited_expr = true | ||
| 23 | reorder_impl_items = true | ||
| 24 | reorder_imports = true | ||
| 25 | single_line_if_else_max_width = 60 | ||
| 26 | single_line_let_else_max_width = 80 | ||
| 27 | struct_lit_width = 40 | ||
| 28 | tab_spaces = 4 | ||
| 29 | use_field_init_shorthand = true | ||
| 30 | use_small_heuristics = "Off" | ||
| 31 | use_try_shorthand = true | ||
| 32 | wrap_comments = true | ||
| 33 | unstable_features = true | ||
