feat: Add rustfmt configuration for the whole depot
Most settings are left at the defaults. There are a few more that we want, but even though a stable rustfmt is perfectly capable of dumping them into a config file, it can not actually use them. I expect this will be mostly agreeable, with the exception of `combine_control_expr`. Change-Id: I66e3b4705e24dbba902e8847397365fcf31dd403 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1555 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
56cba6e032
commit
1faab13004
1 changed files with 22 additions and 0 deletions
22
.rustfmt.toml
Normal file
22
.rustfmt.toml
Normal file
|
@ -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
|
Loading…
Reference in a new issue