aboutsummaryrefslogtreecommitdiff
path: root/rustfmt.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-26 00:46:03 +0000
committerFuwn <[email protected]>2022-03-26 03:12:32 +0000
commitfdfc6c4123ecdb8d8e173a4661a0bcf7d7220a33 (patch)
tree447c5f99a973d9e69e5b3b490acad8c37e07b0c7 /rustfmt.toml
parentdocs(cargo): add meta (diff)
downloadwindmark-fdfc6c4123ecdb8d8e173a4661a0bcf7d7220a33.tar.xz
windmark-fdfc6c4123ecdb8d8e173a4661a0bcf7d7220a33.zip
feat: working proof
Forgot to commit this last night!
Diffstat (limited to 'rustfmt.toml')
-rw-r--r--rustfmt.toml30
1 files changed, 30 insertions, 0 deletions
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..1dd4c90
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1,30 @@
+condense_wildcard_suffixes = true
+edition = "2021"
+enum_discrim_align_threshold = 20
+# error_on_line_overflow = true
+# error_on_unformatted = true
+fn_single_line = true
+force_multiline_blocks = true
+format_code_in_doc_comments = true
+format_macro_matchers = true
+format_strings = true
+imports_layout = "HorizontalVertical"
+license_template_path = ".license_template"
+max_width = 80
+match_arm_blocks = false
+imports_granularity = "Crate"
+newline_style = "Unix"
+normalize_comments = true
+normalize_doc_attributes = true
+reorder_impl_items = true
+group_imports = "StdExternalCrate"
+reorder_modules = true
+report_fixme = "Always"
+# report_todo = "Always"
+struct_field_align_threshold = 20
+struct_lit_single_line = false
+tab_spaces = 2
+use_field_init_shorthand = true
+use_try_shorthand = true
+where_single_line = true
+wrap_comments = true