bytecodealliance / bytecodealliance/wasmtime
Implement structural equality or subtype checking for dynamic component types
Open
wasm-proposal:component-model
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 126
Description
Per https://github.com/bytecodealliance/wasmtime/pull/4442#discussion_r928991943 and https://github.com/bytecodealliance/wasmtime/pull/4442#discussion_r928993328, we need to define what it means for two component types to be equal to each other (or more generally, what it means for one to be a subtype of the other) and implement that. See the `PartialEq` impl for `wasmtime::component::types::Handle` for the current, overly-restrictive definition, plus a comment on how it might be improved.
Contributor guide
Assessment
This issue has not been assessed yet.