From 517f394cf61679762d87dc8b20dcad7fe3bdf4cd Mon Sep 17 00:00:00 2001 From: Paul Mabileau Date: Sun, 18 Feb 2024 23:40:56 +0100 Subject: [PATCH] Style(Rustfmt): Add config file to further restrict imports and comments Signed-off-by: Paul Mabileau --- rustfmt.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..8237122 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,12 @@ +unstable_features = true + +# Imports. +imports_granularity = "Module" +group_imports = "StdExternalCrate" + +# Comments. +wrap_comments = true +normalize_comments = true +normalize_doc_attributes = true +format_code_in_doc_comments = true +doc_comment_code_block_width = 80