-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
49 lines (34 loc) · 940 Bytes
/
Copy pathrustfmt.toml
File metadata and controls
49 lines (34 loc) · 940 Bytes
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
42
43
44
45
46
47
48
49
# Rust formatting configuration
# Version of formatting rules
edition = "2021"
# Line width
max_width = 100
# Use Unix line endings
newline_style = "Unix"
# Use field init shorthand
use_field_init_shorthand = true
# Use spaces for indentation
hard_tabs = false
tab_spaces = 4
# Reorder imports and modules
reorder_imports = true
reorder_modules = true
# Format code in doc comments
format_code_in_doc_comments = true
# Format macro bodies
format_macro_bodies = true
# Format string literals
format_strings = true
# Normalize comments
normalize_comments = true
# Wrap comments at max_width
wrap_comments = true
# Merge multiple imports from same crate
imports_granularity = "Crate"
# Group imports
group_imports = "StdExternalCrate"
# Error on formatting errors
error_on_line_overflow = false
error_on_unformatted = false
# Report formatting errors
# Note: report_todo and report_fixme were removed in newer rustfmt versions