rust-lang / rust-lang/rust-bindgen
Idea: Support compilation/cc-rs interface
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
When using bindgen for non-system libraries, it's common pattern to also have cc-rs for compilation that gets most flags (include headers, paths, ...) duplicated for bindgen (see mozjs or mozangle for such examples). This is usually migrated by feeding same raw compiler flags for both. It would be nice to only provide all flags once using nicer cc api and then reuse them for bindgen. Or simply offer compilation as part of bindgen (maybe benefiting because static analysis is not run twice).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by reviewing bindgen's public API and the cc-rs integration patterns used by mozjs or mozangle. First clarify whether the goal is shared compiler flags or compilation within bindgen, then define the API and acceptance criteria with maintainers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100