-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrustfmt.toml
More file actions
33 lines (28 loc) Β· 1.7 KB
/
rustfmt.toml
File metadata and controls
33 lines (28 loc) Β· 1.7 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
# rustfmt configuration for WaveFlow
# Applied to all Rust files under src-tauri/src/ via directory traversal.
# Run with: cargo fmt --manifest-path src-tauri/Cargo.toml
edition = "2021"
# ββ Line width ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
max_width = 100
# Let rustfmt choose argument / call / struct layouts based on max_width.
use_small_heuristics = "Default"
# ββ Imports βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Sort `use` declarations alphabetically within each group.
reorder_imports = true
# Sort `mod` declarations alphabetically.
reorder_modules = true
# ββ Style βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Remove redundant parentheses wherever safe.
remove_nested_parens = true
# Use `x?` instead of `try!(x)`.
use_try_shorthand = true
# Use `Struct { field }` shorthand when field name matches variable name.
use_field_init_shorthand = true
# ββ Nightly-only options (uncomment if using `rustup override set nightly`) βββ
# imports_granularity = "Crate" # merge same-crate imports into one statement
# group_imports = "StdExternalCrate" # std / external / crate-local blocks
# wrap_comments = true
# comment_width = 100
# normalize_comments = true
# blank_lines_upper_bound = 1
# trailing_comma = "Vertical"