rustkernel/rustfmt.toml
ale 7409cd4d26
initial commit
Signed-off-by: ale <ale@manalejandro.com>
2025-06-15 22:26:49 +02:00

31 lines
589 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_args_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