flake: add rustfmt checks

This commit is contained in:
nikstur 2023-05-17 21:40:31 +02:00
parent 65dbe44999
commit c17650dafc
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,8 @@
inherit cargoArtifacts;
cargoClippyExtraArgs = "-- --deny warnings";
});
rustfmt = craneLib.cargoFmt (commonArgs // { inherit cargoArtifacts; });
};
stubCrane = buildRustApp {
@ -174,6 +176,8 @@
checks = {
toolClippy = toolCrane.clippy;
stubClippy = stubCrane.clippy;
toolFmt = toolCrane.rustfmt;
stubFmt = stubCrane.rustfmt;
} // (import ./nix/tests/lanzaboote.nix {
inherit pkgs;
lanzabooteModule = self.nixosModules.lanzaboote;