rust-lang / rust-lang/rust-bindgen
"manually" implement Hash when it cannot be derived
Open
Nobody has claimed this yet.
A-derive
E-less-easy
enhancement
help wanted
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
Depends on #876.
We probably only want to do this for cases where we can't derive because of the array impl limit. We can't know how to impl hash for all the corner cases that might exist. But the easy ones, we should.
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 reviewing issue #876, which this work depends on, and then inspect how bindgen currently derives Hash implementations. The scope is to identify the straightforward cases where derivation is blocked by the array implementation limit and support those manually, while leaving unsupported corner cases unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100