-
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
Multi target support #212
Multi target support #212
Conversation
@damienmg Hey, I think this is ready for review. I've been using the changes in this branch to work on bazelbuild/rules_rust#392 and was able to easily get generate targets for I tried a couple of ways to try and come up with some logic to transcribe the Would love your thoughts and to know if there's any functionality missing here. Also, I wanted to extend a special thank you for always taking the time to review my pull requests 😄 You're the best! @damienmg |
Sweet!
I agree. Anyway for now I think this PR is fine as it is and can be improved on in further iteration. So I would refrain to include that last change now.
I see nothing missing just a little code readability.
Thanks to you for making all those improvements. Unfortunately, I am not as available as I would like to (a lot is going on both profesionnally and personally, so not a lot of time for 20%). |
Great! Yeah, I also think it'd be good to get general user feedback on the implementation as well. I find it to be quite convenient though 😄
My pleasure! And times are tough so no need to apologize for being busy. I think everyone understands. I hope things are otherwise going well for you and everyone else 😄 |
@damienmg Hey, do you have a quick moment to check out that last commit and potentially merge this? |
Thanks again for all your improvement to those repositories! |
@UebelAndre with this change, is it no longer necessary to specify: [raze]
target = "x86_64-unknown-linux-gnu" |
@akhilles No, it's no longer necessary to specify |
@UebelAndre thanks for your work on this, it seems to bring cargo-raze a step closer to being practical to use for the cross platform app I work on. You asked for feedback at the top; one thing I noticed when I tried removing the target restriction is that flate2 failed to compile:
The generated deps are:
If instead I set targets:
then it succeeds in compiling, but now reqwests fails to compile:
If I switch back to
and the stable cargo raze 0.5.0, then the compile succeeds. |
@dae Thanks! I've enjoyed working on this project 😄 Can I get you to open a new issue for this and include some example source or just a |
Similar to #54 this pull request adds support for generating Bazel targets for multiple platforms. This is still kinda WIP but I wanted to share. I'll update this description as the feature evolves but for now am looking for any insight on what may be missing for the initial release of this feature.
Output
BUILD
file:Note that the
deps
section can be filtered down to a whitelist of platform triples using the newtargets
setting.The list above creates the following diff in the output BUILD file.