-
Notifications
You must be signed in to change notification settings - Fork 112
/
.rustfmt.toml
32 lines (29 loc) · 871 Bytes
/
.rustfmt.toml
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
28
29
30
31
32
# Configures Rust code formatting for Oak.
# See https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
#
# Google rustfmt configuration.
edition = "2021"
# 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"
newline_style = "Unix"
wrap_comments = true
format_generated_files = false
#
# Overrides from Oak.
#
# These are the defaults, repeated to avoid reformatting when they change:
#
comment_width = 80
max_width = 100
#
# Non-default values from here:
#
format_code_in_doc_comments = true
normalize_doc_attributes = true
imports_granularity = "Crate"
imports_layout = "mixed"
group_imports = "StdExternalCrate"