-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
25 lines (23 loc) · 861 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
########################################################################
# Rust Style Configuration #
# This file controls the operation of `rustfmt` and `cargo fmt`. #
# This configuration file is usable on the nightly rustfmt as of #
# 2023-01-30. #
########################################################################
# Stable
max_width = 81
merge_derives = false
tab_spaces = 4
use_field_init_shorthand = true
use_try_shorthand = true
fn_call_width = 50
# Unstable
unstable_features = true
binop_separator = "Front"
blank_lines_lower_bound = 0
blank_lines_upper_bound = 3
control_brace_style = "AlwaysSameLine"
combine_control_expr = false
imports_indent = "Block"
imports_layout = "HorizontalVertical"
group_imports = "StdExternalCrate"