-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
49 lines (33 loc) · 1.13 KB
/
rustfmt.toml
File metadata and controls
49 lines (33 loc) · 1.13 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
# Rustfmt configuration for Janus
# Maximum width of each line
max_width = 100
# Maximum width of the args of a function call before falling back to vertical formatting
fn_call_width = 80
# Maximum width of the args of a function-like attributes before falling back to vertical formatting
attr_fn_like_width = 80
# Maximum width in the body of a struct lit before falling back to vertical formatting
struct_lit_width = 80
# Maximum width in the body of a struct variant before falling back to vertical formatting
struct_variant_width = 80
# Maximum width of an array literal before falling back to vertical formatting
array_width = 80
# Maximum width of a chain to fit on a single line
chain_width = 80
# Maximum line length for single line if-else expressions
single_line_if_else_max_width = 50
# How to indent
hard_tabs = false
# Number of spaces per tab
tab_spaces = 4
# Use field init shorthand if possible
use_field_init_shorthand = true
# Use try shorthand
use_try_shorthand = true
# Reorder imports
reorder_imports = true
# Reorder modules
reorder_modules = true
# Newline style
newline_style = "Unix"
# Edition
edition = "2021"