From c17650dafc065c607d199a3125d33402603c5076 Mon Sep 17 00:00:00 2001 From: nikstur Date: Wed, 17 May 2023 21:40:31 +0200 Subject: [PATCH] flake: add rustfmt checks --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 0ee17bb..828988a 100644 --- a/flake.nix +++ b/flake.nix @@ -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;