Bindgen and Bzlmod #2903
Unanswered
sonoclock110
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Q&A,
I try to use bindgen with bzlmod.
In MODULE.bazel I added:
bazel_dep(name = "rules_rust", version = "0.51.0")
Within a BUILD file I use bindgen:
load("@rules_rust//bindgen:defs.bzl", "rust_bindgen")
cc_library( name = "hello_bindgen", srcs = ["hello_bindgen.c"], hdrs = ["hello_bindgen.h"], linkstatic = True, visibility = ["//visibility:public"], )
rust_bindgen( name = "hello_rust_bindgen", cc_lib = ":hello_bindgen", header = ":hello_bindgen.h", )
When try to build the target I get the error:
Do you have any idea what I have forgotten here?
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions