From 335a4262af8baa63a3e60dfb2439a8b8bf6369e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Sun, 1 Oct 2023 21:40:16 -0700 Subject: [PATCH] fix: `cargo docs` breaking in `buildDepsOnly` of workspaces Fix #312 --- lib/mkDummySrc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mkDummySrc.nix b/lib/mkDummySrc.nix index ccdccffe..39b32fbe 100644 --- a/lib/mkDummySrc.nix +++ b/lib/mkDummySrc.nix @@ -196,7 +196,7 @@ let '' + optionalString (trimmedCargoToml ? package) '' # To build regular and dev dependencies (cargo build + cargo test) ${cpDummy parentDir "src/lib.rs"} - ${cpDummy parentDir "src/bin/crane-dummy/main.rs"} + ${cpDummy parentDir "src/bin/crane-dummy-${trimmedCargoToml.package.name or "no-name"}/main.rs"} # Stub all other targets in case they have particular feature combinations ${safeStubLib}