From 80db40bac8f42f23132b2898b0490f8f76868a57 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Thu, 4 Aug 2022 12:54:09 +0200 Subject: 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 Co-developed-by: Alex Gaynor Signed-off-by: Alex Gaynor Co-developed-by: Wedson Almeida Filho Signed-off-by: Wedson Almeida Filho Signed-off-by: Miguel Ojeda --- .rustfmt.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .rustfmt.toml (limited to '.rustfmt.toml') diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 00000000000000..3de5cc497465c2 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,12 @@ +edition = "2021" +newline_style = "Unix" + +# Unstable options that help catching some mistakes in formatting and that we may want to enable +# when they become stable. +# +# They are kept here since they are useful to run from time to time. +#format_code_in_doc_comments = true +#reorder_impl_items = true +#comment_width = 100 +#wrap_comments = true +#normalize_comments = true -- cgit 1.2.3-korg