From 09d74b0ecac2214a57887f80f2730f2399418067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Mon, 23 Feb 2026 13:12:29 -0800 Subject: [PATCH] chore: `cargo doc --no-deps` Building docs for all deps is wasting time. --- lib/crane/enhance.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crane/enhance.nix b/lib/crane/enhance.nix index 499088b..c5d9a43 100644 --- a/lib/crane/enhance.nix +++ b/lib/crane/enhance.nix @@ -112,7 +112,7 @@ craneLib.overrideScope ( inherit pname; }) // { - buildPhaseCargoCommand = "cargoWithProfile doc --workspace --locked ; cargoWithProfile check --workspace --all-targets --locked ; cargoWithProfile build --locked --workspace --all-targets"; + buildPhaseCargoCommand = "cargoWithProfile check --workspace --all-targets --locked ; cargoWithProfile doc --workspace --locked --no-deps; cargoWithProfile build --locked --workspace --all-targets"; } // args ); @@ -135,7 +135,7 @@ craneLib.overrideScope ( inherit pname; }) // { - buildPhaseCargoCommand = "cargoWithProfile doc --workspace --locked ; cargoWithProfile check --workspace --all-targets --locked ; cargoWithProfile build --locked --workspace --all-targets"; + buildPhaseCargoCommand = "cargoWithProfile check --workspace --all-targets --locked ; cargoWithProfile doc --workspace --locked --no-deps; cargoWithProfile build --locked --workspace --all-targets"; doCheck = false; } // args