From 2f3d596bb6066d53f5add28d62dd8fe32e0e00d6 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 22 Jul 2025 01:24:35 +0300 Subject: [PATCH] chore: set up formatters --- .rustfmt.toml | 1 + .taplo.toml | 13 +++++++++++++ xtask/Cargo.toml | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .rustfmt.toml create mode 100644 .taplo.toml diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ + diff --git a/.taplo.toml b/.taplo.toml new file mode 100644 index 0000000..5a6456b --- /dev/null +++ b/.taplo.toml @@ -0,0 +1,13 @@ +[formatting] +align_entries = true +column_width = 100 +compact_arrays = false +reorder_inline_tables = true +reorder_keys = true + +[[rule]] +include = [ "**/Cargo.toml" ] +keys = [ "package" ] + +[rule.formatting] +reorder_keys = false diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index f5262ca..a8d8f20 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -9,4 +9,4 @@ publish = false [dependencies] -clap.workspace = true +clap.workspace = true