bytecodealliance / bytecodealliance/wac

Provide option to downgrade `unknown import` errors to warnings

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.