forked from project-oak/oak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rustfmt to Google (project-oak#4900)
- Loading branch information
1 parent
3e4e352
commit 8e812eb
Showing
250 changed files
with
4,349 additions
and
6,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
# Configures Rust code formatting for Oak. | ||
# See https://github.com/rust-lang/rustfmt/blob/master/Configurations.md | ||
comment_width = 100 | ||
format_code_in_doc_comments = true | ||
# | ||
# Google rustfmt configuration. | ||
|
||
edition = "2021" | ||
version = "Two" | ||
|
||
# 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 | ||
wrap_comments = true | ||
imports_granularity = "Crate" | ||
imports_layout = "mixed" | ||
edition = "2021" | ||
group_imports = "StdExternalCrate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.