bytecodealliance / bytecodealliance/rust-oci-wasm
Should binary WIT packages have imports in their config?
Open
- Dominant language
- Rust
- Stars
- 19
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
This is a design question. When parsing a binary WIT package, the exports are populated, but [the imports are always empty](https://github.com/bytecodealliance/rust-oci-wasm/blob/v0.3.0/src/component.rs#L78). AFAICT, this is because a WIT packages don't technically import anything because they are not component implementations. They are just interface definitions. But by that same logic, they don't technically export anything either. So I'm confused as to why the exports are populated while the imports are not.
I think it would make sense to list the imports.
Contributor guide
Assessment
This issue has not been assessed yet.