forked from starkware-libs/cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rustfmt.toml
33 lines (31 loc) · 841 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
edition = "2021"
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"
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-2022-11-03",
# "--",
# "rustfmt",
# "--edition",
# "2021",
# "--"
# ]
# and run "rustup toolchain install nightly-2022-11-03".