bytecodealliance / bytecodealliance/wasm-tools

Implement `Hash` on types

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
wasmparser
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
16h 57m
Merged PRs (30d)
38

Description

Currently even data enums and structs (e.g. `Type`, `FuncType`, `NameEntry`, etc.), are missing `Hash` implementation, which makes it hard to use them in a `HashMap` for caching.

Would it be possible to add simple `#[derive(Hash)]` to all non-builder structs?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.