From 269787aff1dd4d130edbf14c9779f3d262b91fa1 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Sat, 4 Jan 2025 13:37:08 +0100 Subject: [PATCH] Add rustfmt and taplo configuration files --- rustfmt.toml | 16 ++++++++++++++++ taplo.toml | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 rustfmt.toml create mode 100644 taplo.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..090d2e1 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,16 @@ +# Edition +edition = "2021" + +# Comments +format_code_in_doc_comments = true +normalize_comments = true +wrap_comments = true + +# Imports +group_imports = "StdExternalCrate" +imports_granularity = "Crate" +imports_layout = "HorizontalVertical" + +# Miscellaneous +enum_discrim_align_threshold = 25 +hex_literal_case = "Upper" diff --git a/taplo.toml b/taplo.toml new file mode 100644 index 0000000..d383d0a --- /dev/null +++ b/taplo.toml @@ -0,0 +1,5 @@ +[formatting] +align_entries = true +allowed_blank_lines = 1 +column_width = 100 +reorder_arrays = true