rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

Add an example of linking a rust_library into a cc_binary

Open bsilver8192 opened this issue 2 years ago • 2 comments

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.

bsilver8192 avatar May 20 '22 05:05 bsilver8192

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.

bsilver8192 avatar Jul 23 '22 20:07 bsilver8192

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.

krasimirgg avatar Aug 01 '22 14:08 krasimirgg

#1490 addresses my use case perfectly. I don't think there's anything useful this PR adds on top of it.

bsilver8192 avatar Aug 15 '22 12:08 bsilver8192