Skip to content

feat(workspace): reduce manifests and dependencies for target members#324

Open
preiter93 wants to merge 2 commits intoLukeMathWalker:mainfrom
preiter93:reduce-workspace
Open

feat(workspace): reduce manifests and dependencies for target members#324
preiter93 wants to merge 2 commits intoLukeMathWalker:mainfrom
preiter93:reduce-workspace

Conversation

@preiter93
Copy link

@preiter93 preiter93 commented Nov 23, 2025

For the prepare command, if a --bin member is specified:

  • Keep only the workspace manifests relevant to the target member
  • Filter the lock file to include only dependencies used by those manifests

See #323

@preiter93
Copy link
Author

preiter93 commented Nov 23, 2025

To test it, one can install it from branch:

cargo install --git https://github.com/preiter93/cargo-chef --branch reduce-workspace

@Sanielia
Copy link

@LukeMathWalker 👀

@LukeMathWalker
Copy link
Owner

I've built a new test suite which should now gives us the confidence required to tackle these larger changes. Would you mind adding a few tests for this to the caching test suite @preiter93?

For the `prepare` command, if a `--bin` member is specified:
  - Keep only the workspace manifests relevant to the target member
  - Filter the lock file to include only dependencies used by those manifests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants