bytecodealliance / bytecodealliance/wac
Provide option to downgrade `unknown import` errors to warnings
Open
- Dominant language
- Rust
- Stars
- 208
- Forks
- 41
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 3
Description
When instantiating a component, it's probably safe to supply it with additional imports that aren't declared in its world. For example, consider a component that declares an import `foo` in its world but it doesn't use `foo` in its implementation. Consequently, `foo` won't be present in the component's WIT that is generated by `witgen`, which will cause a confusing `unknown import` error by `wac`. I think downgrading the error to a warning would be enough to let the user know about a potential logical error while allowing `wac` to run successfully.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.