about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.rustfmt.toml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml
new file mode 100644
index 000000000000..6ad0d5341a4b
--- /dev/null
+++ b/.rustfmt.toml
@@ -0,0 +1,22 @@
+# This configuration file changes some defaults from the ones
+# documented on https://rust-lang.github.io/rustfmt/
+#
+# All other settings are left at the defaults.
+
+edition = "2018"
+newline_style = "Unix"
+use_try_shorthand = true
+
+# Unstable settings that we want in the future, once they are
+# available:
+#
+# combine_control_expr = false
+# comment_width = 100
+# condense_wildcard_suffixes = true
+# format_code_in_doc_comments = true
+# inline_attribute_width = 100
+# match_block_trailing_comma = true
+# merge_imports = true
+# normalize_comments = true
+# overflow_delimited_expr = true
+# wrap_comments = true