rust-lang / rust-lang/rust-bindgen

"manually" implement Hash when it cannot be derived

Open
#877 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.