bytecodealliance / bytecodealliance/rust-oci-wasm

Should binary WIT packages have imports in their config?

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
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

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.