From f04a0133ec28a730c17579184246b995a3ca562a Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 16 Dec 2024 10:51:24 +0100 Subject: [PATCH] Add `rust-toolchain.toml` and `rustfmt.toml` --- rust/rust-toolchain.toml | 2 ++ rust/rustfmt.toml | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 rust/rust-toolchain.toml create mode 100644 rust/rustfmt.toml diff --git a/rust/rust-toolchain.toml b/rust/rust-toolchain.toml new file mode 100644 index 0000000..2e2b8c8 --- /dev/null +++ b/rust/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.82.0" diff --git a/rust/rustfmt.toml b/rust/rustfmt.toml new file mode 100644 index 0000000..beeb781 --- /dev/null +++ b/rust/rustfmt.toml @@ -0,0 +1,9 @@ +tab_spaces = 4 +newline_style = "Auto" +reorder_imports = true +reorder_modules = true +reorder_impl_items = false +indent_style = "Block" +normalize_comments = false +imports_granularity = "Module" +group_imports = "StdExternalCrate" \ No newline at end of file