-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
39 lines (31 loc) · 880 Bytes
/
rustfmt.toml
File metadata and controls
39 lines (31 loc) · 880 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
# Rustfmt configuration for consistent code formatting
# See https://rust-lang.github.io/rustfmt for options
# Enable nightly-only formatting options (requires nightly rustfmt)
unstable_features = true
# Core formatting rules
max_width = 100
hard_tabs = false
tab_spaces = 4
newline_style = "Unix"
# Import formatting
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
reorder_imports = true
# Code organization
use_small_heuristics = "Default"
fn_single_line = false
where_single_line = false
force_explicit_abi = true
# Comments and documentation
wrap_comments = true
format_code_in_doc_comments = true
normalize_doc_attributes = true
# String formatting
format_strings = false
format_macro_matchers = true
# Control flow
match_block_trailing_comma = true
trailing_comma = "Vertical"
trailing_semicolon = true
# Style choices for CLI tool
edition = "2024"