bazelbuild / bazelbuild/rules_rust
rust_bindgen_library does not allow extra deps
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
Attempting to pass additional deps to rust_bindgen_library fails with `Error in rust_library: rule(...) got multiple values for parameter 'deps'`. It seems like the libc crate is almost certainly a requirement for nontrivial uses of `rust_bindgen_library`, so it's not clear how this rule is intended to be used without the ability to pass along additional deps.
Contributor guide
Research direction
Start by reproducing the reported rust_bindgen_library invocation and trace how it delegates to rust_library, focusing on where the deps parameter is passed. Done means additional dependencies can be supplied without the duplicate-deps error and a nontrivial binding that needs libc can be used successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100