-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrustfmt.toml
More file actions
41 lines (33 loc) · 856 Bytes
/
rustfmt.toml
File metadata and controls
41 lines (33 loc) · 856 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
# Rustfmt configuration for MoonBase
# Following Rust standard formatting with some project-specific preferences
# Edition
edition = "2024"
# Line width
max_width = 100
hard_tabs = false
tab_spaces = 4
# Imports
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
reorder_imports = true
# Functions and control flow
fn_single_line = false
control_brace_style = "AlwaysSameLine"
brace_style = "SameLineWhere"
# Comments and documentation
normalize_comments = true
normalize_doc_attributes = true
wrap_comments = true
comment_width = 80
# Formatting options
use_small_heuristics = "Default"
newline_style = "Unix"
remove_nested_parens = true
combine_control_expr = true
# Trailing elements
trailing_comma = "Vertical"
trailing_semicolon = true
# Misc
format_code_in_doc_comments = true
format_strings = false
format_macro_matchers = true