Add .rustfmt.toml file
Bug: webrtc:403297821 Change-Id: Ia395519524948da6c4b83ac6f510214e75d90534 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/381240 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#44127}
This commit is contained in:
parent
64e4714281
commit
c3cb9b7247
26
.rustfmt.toml
Normal file
26
.rustfmt.toml
Normal file
@ -0,0 +1,26 @@
|
||||
# This file defines the Rust style for automatic reformatting.
|
||||
# See also https://rust-lang.github.io/rustfmt
|
||||
|
||||
# Rust language edition to be used by the parser.
|
||||
edition = "2021"
|
||||
|
||||
# Version of the formatting rules to use.
|
||||
style_edition = "2021"
|
||||
|
||||
# Line endings will be converted to \n.
|
||||
newline_style = "Unix"
|
||||
|
||||
wrap_comments = true
|
||||
|
||||
# The "Default" setting has a heuristic which splits lines too aggresively.
|
||||
# We are willing to revisit this setting in future versions of rustfmt.
|
||||
# Bugs:
|
||||
# * https://github.com/rust-lang/rustfmt/issues/3119
|
||||
# * https://github.com/rust-lang/rustfmt/issues/3120
|
||||
use_small_heuristics = "Max"
|
||||
|
||||
# Third party code is formatted upstream.
|
||||
ignore = [
|
||||
"third_party/rust/**/crate",
|
||||
"third_party/rust/chromium_crates_io/vendor",
|
||||
]
|
||||
@ -10,6 +10,7 @@ per-file .vpython3=mbonadei@webrtc.org,jansson@webrtc.org,jleconte@webrtc.org
|
||||
per-file AUTHORS=*
|
||||
per-file DEPS=*
|
||||
per-file pylintrc=mbonadei@webrtc.org,jansson@webrtc.org,jleconte@webrtc.org
|
||||
per-file .rustfmt.toml=boivie@webrtc.org,mbonadei@webrtc.org,jleconte@webrtc.org
|
||||
per-file pylintrc_old_style=mbonadei@webrtc.org,jansson@webrtc.org,jleconte@webrtc.org
|
||||
per-file WATCHLISTS=*
|
||||
per-file native-api.md=mbonadei@webrtc.org
|
||||
|
||||
Loading…
Reference in New Issue
Block a user