provisioning/.rustfmt.toml

54 lines
1.1 KiB
TOML
Raw Permalink Normal View History

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