From d482808eb2209502960d359be70397a39553e43b Mon Sep 17 00:00:00 2001 From: pgherveou Date: Wed, 8 Oct 2025 07:18:17 +0000 Subject: [PATCH] add rustfmt.toml --- .rustfmt.toml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..a6e138d --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,34 @@ +# Rustfmt configuration - configured to minimize changes +# Only stable features are used to ensure compatibility + +# Edition +edition = "2024" + +# Line width +max_width = 100 + +# Use small heuristics +use_small_heuristics = "Default" + +# Formatting +newline_style = "Unix" +use_field_init_shorthand = true +use_try_shorthand = true + +# Chains +chain_width = 60 + +# Function calls +fn_call_width = 60 + +# Structs +struct_lit_width = 18 + +# Arrays +array_width = 60 + +# Misc +reorder_imports = true +reorder_modules = true +remove_nested_parens = true +merge_derives = true