bazelbuild / bazelbuild/rules_rust

bindgen dependencies aren't setup correctly when using rules_rust with bzlmod

Open
#2,787 3 comments 1 reaction 0 assignees View on GitHub
awaiting-response bindgen
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

This is what my workspace file looks like:

![Screenshot 2024-08-12 at 11 23 40 AM](https://github.com/user-attachments/assets/c146e7de-3622-4a68-b413-7b0a6e4f8941)

When I use rules_rust in the workspace via http_archive, I can use bindgen via rust_bindgen_library. However when I try to use rules_rust with bzlmod rather than in the workspace, I get the following error:

![Screenshot 2024-08-12 at 11 25 09 AM](https://github.com/user-attachments/assets/de88a8c2-bc40-4ec4-a202-7fcc0b5f9a83)

I see that bzlmod support is still [WIP](https://bazelbuild.github.io/rules_rust/#bzlmod) so I just wanted to see if we could get support for bindgen with rules_rust via bzlmod.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.