Add toolchain and format config
This commit is contained in:
parent
78edb8e26c
commit
96c8b3fbab
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[toolchain]
|
||||
channel = "nightly"
|
10
treefmt.toml
Normal file
10
treefmt.toml
Normal 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"]
|
Loading…
Reference in a new issue