summaryrefslogtreecommitdiff
path: root/.rustfmt.toml
diff options
context:
space:
mode:
Diffstat (limited to '.rustfmt.toml')
-rw-r--r--.rustfmt.toml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 0000000..5290ecd
--- /dev/null
+++ b/.rustfmt.toml
@@ -0,0 +1,29 @@
+max_width = 100
+comment_width = 80
+
+wrap_comments = true
+hard_tabs = false
+tab_spaces = 4
+imports_layout = "Vertical"
+imports_granularity = "Crate"
+
+newline_style = "Unix"
+use_small_heuristics = "Default"
+
+reorder_imports = true
+reorder_modules = true
+
+remove_nested_parens = true
+
+fn_args_layout = "Tall"
+
+edition = "2021"
+
+match_block_trailing_comma = true
+
+merge_derives = true
+
+use_try_shorthand = false
+use_field_init_shorthand = false
+
+force_explicit_abi = true