forked from youtube/cobalt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rustfmt.toml
More file actions
27 lines (21 loc) · 799 Bytes
/
.rustfmt.toml
File metadata and controls
27 lines (21 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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.
# Please use negative pattern (!path) for any path you do want to format.
ignore = [
"third_party/**",
"!third_party/blink/**",
]