args: use PathBuf instead of string for file path

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-08-13 07:30:59 +05:30
parent d70b196042
commit caf528b6c0
3 changed files with 19 additions and 11 deletions

View File

@@ -34,10 +34,11 @@
commonArgs = { inherit src; };
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
# there are no deps right now
# cargoArtifacts = craneLib.buildDepsOnly commonArgs;
tricc = craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts;
# inherit cargoArtifacts;
doCheck = false;
});
in
@@ -49,7 +50,7 @@
# not using flake checks to run them individually
checks = {
clippy = craneLib.cargoClippy (commonArgs // {
inherit cargoArtifacts;
# inherit cargoArtifacts;
});
fmt = craneLib.cargoFmt {
@@ -57,11 +58,11 @@
};
doc = craneLib.cargoDoc (commonArgs // {
inherit cargoArtifacts;
# inherit cargoArtifacts;
});
nextest = craneLib.cargoNextest (commonArgs // {
inherit cargoArtifacts;
# inherit cargoArtifacts;
partitions = 1;
partitionType = "count";
});