I was trying #322 and noticed that in my build, at the end of buildWorkspaceDepsOnly step, nix is doing bunch of shrinking ... and afterwards the buildWorkspace is rebuilding all the dependencies from scratch.
Edit: Just checked and it seems that v0.12.1 behaves correctly. It also does the shrinking but when buildWorkspace starts it only builds local crates as expected.
BTW. It still seems to me that nix should not mess with these files under ./target... seems sus, and takes extra time.
> cargo --version
cargo 1.67.0 (8ecd4f20a 2023-01-10)
> rustc --version
rustc 1.67.0 (fc594f156 2023-01-24)