From 96c8b3fbabf818388eabea9cad2ebadc65113e59 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Thu, 1 Dec 2022 09:51:04 +0100 Subject: [PATCH] Add toolchain and format config --- rust-toolchain.toml | 2 ++ treefmt.toml | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 rust-toolchain.toml create mode 100644 treefmt.toml diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..271800c --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly" \ No newline at end of file diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..8f89868 --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,10 @@ +# One CLI to format the code tree - https://github.com/numtide/treefmt + +[formatter.nix] +command = "alejandra" +includes = [ "*.nix" ] + +[formatter.rust] +command = "rustfmt" +options = ["--edition", "2021"] +includes = ["*.rs"] \ No newline at end of file