rustkernel/rustfmt.toml
ale 83259d1506
build ok 5
Signed-off-by: ale <ale@manalejandro.com>
2025-06-20 01:50:08 +02:00

31 lines
591 B
TOML

# Rust formatting configuration
# Based on Linux kernel Rust formatting rules
max_width = 100
hard_tabs = true
tab_spaces = 8
newline_style = "Unix"
use_small_heuristics = "Default"
# Import organization
imports_layout = "Mixed"
group_imports = "StdExternalCrate"
# Function formatting
fn_params_layout = "Tall"
where_single_line = true
# Control flow
control_brace_style = "AlwaysSameLine"
indent_style = "Block"
# Comments
comment_width = 80
wrap_comments = true
normalize_comments = true
# Misc
format_code_in_doc_comments = true
format_strings = false
format_macro_matchers = true