-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathrustfmt.toml
30 lines (27 loc) · 900 Bytes
/
rustfmt.toml
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
# WARNING : Formatting in this project is non-standard and unfortunetely `cargo fmt` does not support "out of the box" formatting.
# Here you can find closest possible set of settings for `cargo fmt`, but it is not even close to desirable.
edition = "2021"
hard_tabs = false
max_width = 130
newline_style = "Unix"
use_try_shorthand = true
space_before_colon = true
space_after_colon = true
spaces_around_ranges = true
tab_spaces = 2
type_punctuation_density = "Wide"
use_small_heuristics = "Default"
where_single_line = false
blank_lines_upper_bound = 2
brace_style = "AlwaysNextLine"
control_brace_style = "AlwaysNextLine"
empty_item_single_line = true
fn_args_layout = "Tall"
fn_single_line = true
imports_layout = "Mixed"
match_arm_leading_pipes = "Preserve"
imports_granularity = "Preserve"
reorder_imports = false
group_imports = "Preserve"
reorder_impl_items = true
unstable_features = true