treefmt add rustfmt

This commit is contained in:
jopejoe1 2025-03-28 12:17:16 +01:00
parent f7612711b0
commit 83b7458e9f

View file

@ -37,6 +37,7 @@
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
nixfmt-rfc-style nixfmt-rfc-style
nodePackages.prettier nodePackages.prettier
rustfmt
]; ];
settings = { settings = {
tree-root-file = ".git/index"; tree-root-file = ".git/index";
@ -45,6 +46,14 @@
command = "nixfmt"; command = "nixfmt";
includes = [ "*.nix" ]; includes = [ "*.nix" ];
}; };
rustfmt = {
command = "rustfmt";
options = [
"--edition"
"2018"
];
includes = [ "*.rs" ];
};
prettier = { prettier = {
command = "prettier"; command = "prettier";
options = [ "--write" ]; options = [ "--write" ];