rules_rust
rules_rust copied to clipboard
Add an example of linking a rust_library into a cc_binary
allocator_library is now exposed at a higher level to support this.
This required swapping the order of libstd and allocator_library in the link. allocator_library is moving earlier, so this should enable it to depend on strictly more libraries than anything which worked before.
I'm happy to merge main to update this if the maintainers want to merge it, let me know. I definitely understand not wanting to maintain these hacks though.
I'm happy to merge main to update this if the maintainers want to merge it, let me know. I definitely understand not wanting to maintain these hacks though.
This PR looks good to me, ready to merge after updating on top of the main branch.
#1490 addresses my use case perfectly. I don't think there's anything useful this PR adds on top of it.