Skip to content

Commit 80db40b

Browse files
committed
rust: add .rustfmt.toml
This is the configuration file for the `rustfmt` tool. `rustfmt` is a tool for formatting Rust code according to style guidelines. It is very commonly used across Rust projects. The default configuration options are used. Reviewed-by: Kees Cook <[email protected]> Co-developed-by: Alex Gaynor <[email protected]> Signed-off-by: Alex Gaynor <[email protected]> Co-developed-by: Wedson Almeida Filho <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent e4b69cb commit 80db40b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ modules.order
9797
!.gitattributes
9898
!.gitignore
9999
!.mailmap
100+
!.rustfmt.toml
100101

101102
#
102103
# Generated include files

.rustfmt.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
edition = "2021"
2+
newline_style = "Unix"
3+
4+
# Unstable options that help catching some mistakes in formatting and that we may want to enable
5+
# when they become stable.
6+
#
7+
# They are kept here since they are useful to run from time to time.
8+
#format_code_in_doc_comments = true
9+
#reorder_impl_items = true
10+
#comment_width = 100
11+
#wrap_comments = true
12+
#normalize_comments = true

0 commit comments

Comments
 (0)