31 lines
589 B
TOML
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
|