-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
34 lines (32 loc) · 879 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
30
31
32
33
34
edition = "2018"
newline_style = "Unix"
use_field_init_shorthand = true
use_small_heuristics = "Max"
use_try_shorthand = true
max_width = 100
# Unstable features below
unstable_features = true
version = "Two"
comment_width = 100
format_code_in_doc_comments = true
format_macro_bodies = true
format_macro_matchers = true
format_strings = true
imports_granularity = "Module"
imports_layout = "HorizontalVertical"
group_imports = "StdExternalCrate"
normalize_comments = true
normalize_doc_attributes = true
wrap_comments = true
# To use these settings in vscode, add the following line to your settings:
# "rust-analyzer.rustfmt.overrideCommand": [
# "rustup",
# "run",
# "nightly-2023-10-19",
# "--",
# "rustfmt",
# "--edition",
# "2018",
# "--"
# ]
# and run "rustup toolchain install nightly-2023-10-19".