docs(rust): the dep-cache comment no longer describes two consumers
Follow-up to my own #3171. That PR gave the deploy path its own cache and left the paragraph above it saying "package builds and checks reuse this" — which stopped being true in the same commit that made it false. Merged into one accurate lead-in. The surviving facts (built once, every consumer passes the same `cleanSrc`) are still worth stating; the claim about who consumes it belongs to the two blocks below, which say it correctly.
This commit is contained in:
parent
d7b12e8c48
commit
feeabe97af
1 changed files with 5 additions and 5 deletions
10
nix/rust.nix
10
nix/rust.nix
|
|
@ -40,11 +40,11 @@ rec {
|
|||
fileset = craneLib.fileset.commonCargoSources ../.;
|
||||
};
|
||||
|
||||
# Build the workspace's dependency tree once, cached as its own
|
||||
# derivation. Package builds and checks reuse this via
|
||||
# `inherit cargoArtifacts;` so a workspace-only edit doesn't rebuild
|
||||
# deps. All consumers use the same `cleanSrc` so the input hash
|
||||
# stays consistent across the chain.
|
||||
# The workspace's dependency tree, built once and cached as its own
|
||||
# derivation so a workspace-only edit doesn't rebuild deps. Every
|
||||
# consumer passes the same `cleanSrc`, keeping the input hash
|
||||
# consistent across the chain.
|
||||
#
|
||||
# Two dep caches, one per audience, and the split is not premature:
|
||||
# crane's `buildDepsOnly` defaults `doCheck = true`, which adds
|
||||
# `--all-targets` to the check and a `cargo test --no-run`, so the cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue