rust-lang / rust-lang/rust-bindgen
Add an option to aggressively opaque type
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
See Gecko bug 1412077, it may be a good idea to introduce a new option to aggressively mark types opaque based solely on the whitelist. This way, we can avoid generating types and their layout tests if we don't need them at all.
We can call the new option "whitelist-only", "aggressive-opaque", or something like that. And we probably should report error when this option is specified but there is still any opaque type in the list.
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 tracing the whitelist and opaque-type handling in bindgen, then inspect how generated types and layout tests are selected. The issue gives no file or test entry point; done means adding the agreed option, avoiding unneeded generation and layout tests, and reporting an error when the option conflicts with remaining opaque types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100