Add toolchain and format config

This commit is contained in:
Malte Tammena 2022-12-01 09:51:04 +01:00
parent 78edb8e26c
commit 96c8b3fbab
2 changed files with 12 additions and 0 deletions

2
rust-toolchain.toml Normal file
View file

@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"

10
treefmt.toml Normal file
View file

@ -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"]