This repository was archived by the owner on Mar 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rustfmt.toml
More file actions
50 lines (39 loc) · 1.48 KB
/
.rustfmt.toml
File metadata and controls
50 lines (39 loc) · 1.48 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
42
43
44
45
46
47
48
49
50
# Specifies which edition is used by the parser.
# Default value: "2015"
style_edition = "2024"
# How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
# Default value: Preserve
imports_granularity = "Crate"
# Format the metavariable matching patterns in macros.
# Default value: false
format_macro_matchers = true
# Format string literals where necessary
# Default value: false
format_strings = true
# Break comments to fit on the line
# Default value: false
# Possible values: true, false
# wrap_comments = true
# Convert /* */ comments to // comments where possible
# Default value: false
# Possible values: true, false
# normalize_comments = true
# Reorder impl items. type and const are put first, then macros and methods.
# Default value: false
reorder_impl_items = true
# Controls the strategy for how imports are grouped together.
# Default value: Preserve
group_imports = "StdExternalCrate"
# Add trailing semicolon after break, continue and return
# Default value: true
trailing_semicolon = false
# Enable unstable features on the unstable channel.
# Default value: false
unstable_features = true
# Use field initialize shorthand if possible.
# Default value: false
use_field_init_shorthand = true
# The following rust files listing have been made in october 2021.
# This listing allows us first to ignore all rust files formmatting.
# Then we can remove progressively from this list the files we want to format
ignore = []