forked from toon-format/toon-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
58 lines (48 loc) · 1.26 KB
/
Copy pathrustfmt.toml
File metadata and controls
58 lines (48 loc) · 1.26 KB
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
edition = "2021"
max_width = 100
hard_tabs = false
tab_spaces = 4
newline_style = "Unix"
# Import organization
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
imports_layout = "Vertical"
# Function and struct formatting
fn_params_layout = "Tall"
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
match_arm_blocks = true
match_arm_leading_pipes = "Never"
force_explicit_abi = true
# Comments and documentation
wrap_comments = true
comment_width = 80
normalize_comments = true
normalize_doc_attributes = true
# String and literal formatting
format_strings = true
format_code_in_doc_comments = true
# Trailing commas and semicolons
trailing_comma = "Vertical"
trailing_semicolon = true
use_field_init_shorthand = true
# Spacing and alignment
space_before_colon = false
space_after_colon = true
spaces_around_ranges = false
binop_separator = "Front"
remove_nested_parens = true
# Error handling and control flow
empty_item_single_line = true
fn_single_line = false
where_single_line = false
# Type formatting
type_punctuation_density = "Wide"
struct_field_align_threshold = 0
# Macro formatting
format_macro_matchers = true
format_generated_files = false
# Miscellaneous
unstable_features = false
disable_all_formatting = false
skip_children = false