rust-lang / rust-lang/rustc_codegen_gcc
Bindgen-like support
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 105
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 14
Description
GCC already has -fdump-go-spec=/-fdump-ada-spec options to write Go/Ada bindings for C/C++.
-fdump-ada-spec is implemented in c-family, so in the FEs; -fdump-go-spec is in the middle-end code, hooking into debug_hooks.
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
Start by reading GCC’s c-family implementation of -fdump-ada-spec and the middle-end implementation of -fdump-go-spec, including its debug_hooks integration. Then identify the rustc_codegen_gcc entry points relevant to equivalent bindgen-like support and define a test for the expected generated bindings; done means the requested binding output is supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp, go, rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100