secretumvault/rustfmt.toml

58 lines
1.1 KiB
TOML
Raw Normal View History

# Generated by dev-system/ci
# Rustfmt configuration for consistent Rust code formatting
# Basic formatting options
edition = "2021"
max_width = 100
hard_tabs = false
tab_spaces = 4
newline_style = "Unix"
# Comment formatting
comment_width = 80
wrap_comments = true
# Code structure
use_small_heuristics = "Default"
# Spaces and indentation
fn_single_line = false
fn_args_layout = "Tall"
where_single_line = false
# Match expressions
match_block_trailing_comma = false
# Imports
reorder_imports = true
reorder_modules = true
remove_nested_parens = true
group_imports = "StdExternalCrate"
# Chains
chain_width = 60
chain_indent = "Block"
# Formatting
format_strings = true
format_code_in_doc_comments = false
normalize_comments = true
normalize_doc_attributes = true
# Line breaks
match_arm_blocks = true
overflow_delimited_expressions = false
blank_lines_lower_bound = 0
blank_lines_upper_bound = 1
# Performance
condense_wildcard_imports = false
# Spaces
space_before_colon = false
space_after_colon = true
spaces_around_ranges = false
# Stability
unstable_features = false