Skip to content

Commit 72558d1

Browse files
committed
ci(rustfmt): sharing rustfmt
1 parent ff7f4a7 commit 72558d1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.rustfmt.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# General
2+
indent_style = "Block"
3+
unstable_features = true
4+
max_width = 80
5+
color = "Always"
6+
format_strings = true
7+
space_after_colon = true
8+
9+
trailling_semicolons = false
10+
11+
# structs
12+
struct_field_align_threshold = 20
13+
struct_lit_single_line = false
14+
use_field_init_shorthand = true
15+
16+
17+
# Functions
18+
fn_params_layout = "Compressed"
19+
fn_call_width = 80
20+
brace_style = "PreferSameLine"
21+
empty_item_single_line = false
22+
23+
# imports
24+
imports_granularity = "Crate"
25+
imports_layout = "Vertical"
26+
group_imports = "StdExternalCrate"
27+
reorder_imports = true
28+
29+
# mods
30+
reorder_modules = true
31+
32+
# tabs
33+
trailing_comma = "Vertical"
34+
match_block_trailing_comma = true
35+
hard_tabs = false
36+
tab_spaces = 4
37+
overflow_delimited_expr = true
38+
39+
# comment
40+
comment_width = 80
41+
wrap_comments = true
42+
format_code_in_doc_comments = true
43+
44+
normalize_comments = true

0 commit comments

Comments
 (0)