Minimise recipe.json
when cargo chef prepare
is called with a --bin
flag
#208
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
cargo-chef
slims down the workspace members to just the specified binary whencargo chef prepare
is invoked with a--bin
flag.At the moment (see #207) we still keep around ALL other local manifests, in case the binary depends on another one of the local crates via a path dependency.
To maximise cache reuse, we could be more sophisticated: only include in the
recipe.json
file the manifests of the local crates that are in the dependency closure of the specified binary target.The text was updated successfully, but these errors were encountered: