2025-12-29 04:19:26 +00:00
|
|
|
# Generated by dev-system/ci
|
|
|
|
|
# Rustfmt configuration for consistent Rust code formatting
|
2025-12-29 05:04:53 +00:00
|
|
|
# Configured for cargo +nightly fmt with advanced features enabled
|
2025-12-29 04:19:26 +00:00
|
|
|
|
|
|
|
|
# Basic formatting options
|
|
|
|
|
edition = "2021"
|
|
|
|
|
max_width = 100
|
|
|
|
|
hard_tabs = false
|
|
|
|
|
tab_spaces = 4
|
|
|
|
|
newline_style = "Unix"
|
|
|
|
|
|
|
|
|
|
# Code structure
|
|
|
|
|
use_small_heuristics = "Default"
|
|
|
|
|
|
|
|
|
|
# Imports
|
|
|
|
|
reorder_imports = true
|
|
|
|
|
reorder_modules = true
|
|
|
|
|
remove_nested_parens = true
|
|
|
|
|
group_imports = "StdExternalCrate"
|
|
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Match expressions
|
|
|
|
|
match_block_trailing_comma = false
|
|
|
|
|
|
2025-12-29 04:19:26 +00:00
|
|
|
# Chains
|
|
|
|
|
chain_width = 60
|
|
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Comment formatting (nightly)
|
|
|
|
|
comment_width = 80
|
|
|
|
|
wrap_comments = true
|
2025-12-29 04:19:26 +00:00
|
|
|
normalize_comments = true
|
|
|
|
|
normalize_doc_attributes = true
|
|
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Spaces and indentation (nightly)
|
|
|
|
|
fn_single_line = false
|
|
|
|
|
fn_params_layout = "Tall"
|
|
|
|
|
where_single_line = false
|
2025-12-29 04:19:26 +00:00
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Formatting (nightly)
|
|
|
|
|
format_strings = true
|
|
|
|
|
format_code_in_doc_comments = false
|
2025-12-29 04:19:26 +00:00
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Spaces (nightly)
|
2025-12-29 04:19:26 +00:00
|
|
|
space_before_colon = false
|
|
|
|
|
space_after_colon = true
|
|
|
|
|
spaces_around_ranges = false
|
|
|
|
|
|
2025-12-29 05:04:53 +00:00
|
|
|
# Line breaks (nightly)
|
|
|
|
|
match_arm_blocks = true
|
|
|
|
|
blank_lines_lower_bound = 0
|
|
|
|
|
blank_lines_upper_bound = 1
|
|
|
|
|
|
|
|
|
|
# Enable nightly features
|
|
|
|
|
unstable_features = true
|