-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
41 lines (34 loc) · 1.03 KB
/
Copy pathrustfmt.toml
File metadata and controls
41 lines (34 loc) · 1.03 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
# Rust format configuration for M2M Protocol
# https://rust-lang.github.io/rustfmt/
#
# Note: Only stable options are enabled. Nightly options are commented.
edition = "2021"
# Line width
max_width = 100
# Imports
reorder_imports = true
reorder_modules = true
# Functions
fn_params_layout = "Tall"
# Control flow
match_block_trailing_comma = true
# Misc
use_field_init_shorthand = true
use_try_shorthand = true
force_explicit_abi = true
newline_style = "Unix"
# =============================================================================
# Nightly-only options (uncomment if using nightly rustfmt)
# =============================================================================
# comment_width = 100
# wrap_comments = true
# imports_granularity = "Module"
# group_imports = "StdExternalCrate"
# fn_single_line = false
# struct_lit_single_line = true
# enum_discrim_align_threshold = 20
# match_arm_blocks = true
# format_strings = false
# doc_comment_code_block_width = 80
# format_code_in_doc_comments = true
# normalize_doc_attributes = true