summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-11-09 23:28:15 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-11-10 01:20:11 +0100
commit38c67cad817419c5f8f7b2c2cb90f3ac7cf5fd0b (patch)
treec48b0981b5890276076907645f66df0b58c7dfef
parent9e592ee450eeef535b7acf284f157edc9ed4af62 (diff)
downloadvtcol-38c67cad817419c5f8f7b2c2cb90f3ac7cf5fd0b.tar.gz
add rustfmt settings
-rw-r--r--.rustfmt.toml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 0000000..aea0694
--- /dev/null
+++ b/.rustfmt.toml
@@ -0,0 +1,31 @@
+unstable_features = true
+max_width = 80
+hard_tabs = false
+tab_spaces = 4
+newline_style = "Unix"
+use_small_heuristics = "Max"
+reorder_imports = true
+reorder_modules = true
+edition = "2018"
+merge_derives = true
+use_field_init_shorthand = true
+binop_separator = "Front"
+combine_control_expr = true
+condense_wildcard_suffixes = false
+enum_discrim_align_threshold = 25
+fn_single_line = true
+force_multiline_blocks = true
+format_macro_matchers = true
+format_strings = true
+imports_indent = "Visual"
+indent_style = "Block"
+inline_attribute_width = 40
+match_arm_blocks = false
+match_block_trailing_comma = true
+imports_granularity= "Crate"
+overflow_delimited_expr = true
+reorder_impl_items = true
+struct_field_align_threshold = 25
+struct_lit_single_line = true
+where_single_line = true
+brace_style = "AlwaysNextLine"