45 lines
908 B
TOML
45 lines
908 B
TOML
# Rustfmt configuration
|
|
# See: https://rust-lang.github.io/rustfmt/
|
|
|
|
# Maximum width of each line
|
|
max_width = 100
|
|
|
|
# Number of spaces per tab
|
|
tab_spaces = 4
|
|
|
|
# Use field initialization shorthand if possible
|
|
use_field_init_shorthand = true
|
|
|
|
# Reorder import statements alphabetically
|
|
reorder_imports = true
|
|
|
|
# Reorder module statements alphabetically
|
|
reorder_modules = true
|
|
|
|
# Remove nested parentheses
|
|
remove_nested_parens = true
|
|
|
|
# Edition to use for parsing
|
|
edition = "2024"
|
|
|
|
# Merge multiple imports into a single nested import
|
|
imports_granularity = "Crate"
|
|
|
|
# Group imports by std, external crates, and local modules
|
|
group_imports = "StdExternalCrate"
|
|
|
|
# Format code in doc comments
|
|
format_code_in_doc_comments = true
|
|
|
|
# Format strings
|
|
format_strings = true
|
|
|
|
# Wrap comments
|
|
wrap_comments = true
|
|
|
|
# Normalize comments
|
|
normalize_comments = true
|
|
|
|
# Normalize doc attributes
|
|
normalize_doc_attributes = true
|