-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Overview
According to the workspace RFC:
a crate which specifies [workspace] without a members key will transitively crawl path dependencies to fill in this key. This way all path dependencies (and recursively their own path dependencies) will inherently become the default value for workspace.members.
This makes testing crates that one is working on with a workspace project very difficult. A saner default would be to only include all paths below the project root in the workspace. One can override this with the .cargo/config file, however this is much less convinient.
The RFC also emphasises the fact that this default is used only when a members key is not defined. However cargo still uses all assumes all path dependancies as members regardless if the members key is defined or not.
Meta
This issue was inspired by phil-opp/blog_os#234, That project is compiled using xargo with a custom target. The issue occured while I was working on a subcrate, and have not created an SSCCE, although I can if it the bug proves to be elusive.