-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support Cargo Workspaces #262
Comments
If anyone was interested in implementing this I'd be forever grateful!! |
Do you have opinions about the desired behavior? Do you think we should represent the workspaces somehow in the generated output, or just generate "the minimal thing that works"? |
I would be happy with "the minimal thing that works". I do think the best approach for the time being would be to create aliases in the appropriate subpackages that contain aliases to the dependencies, but outside of that, I don't think it should matter how the dependencies are rendered. My thought is that the outputs would look something like the following:
where That said though, I do feel at some point So long as I can run |
I would say if I got to pick the next feature |
FWIW, I've been trying another approach with a project that uses workspaces. Orginally, the directory tree looked like (just the Rust parts)
Now it looks like this:
When I want to add a new dependency I edit So Then in each crate's This ensures that everything is built with the same version of all the dependencies. It's still tedious having both |
I've used this approach as well but I don't quite feel like that satisfies the thing I'm looking for. I don't want to have to write invalid (or maybe "abnormal" would be a better word?) I'm not super particular on whether or not the |
I think is was able to get this working over the weekend. There's a couple of issues to iron out then I'll start opening pull requests 😀 |
Is there documentation on how to use the new changes in #276? Just came back to this after the dust settled, but I'm a bit lost on what to do to get things working. |
I spoke too soon - there is already an example available. See #277. Thanks for the hard work! |
The changes haven't been released yet. As for docs, I've updated them in #302 That PR addresses some usability issues with the workspace support which you can read up there. As far as using workspace support, in your top level |
Also, be careful, there are some things scheduled to be updated in #306 so some variables and defaults will change. |
#304 is the issue I opened to track a new release that includes these changes. You can subscribe to that to find out when everything is done and the new release is available 😄 |
This is now released in version |
I decided to make a top level issue to track all information about cargo workspaces. This tool should be updated to be able to generate Bazel files for projects that make use of cargo workspaces.
The text was updated successfully, but these errors were encountered: