Stream: git-wasmtime

Topic: wasmtime / PR #4208 Implement module imports into components


view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 15:14):

alexcrichton opened PR #4208 from component-linker to main:

As a step towards implementing function imports into a component this
commit implements importing modules into a component. This fills out
missing pieces of functionality such as exporting modules as well. The
previous translation code had initial support for translating imported
modules but some of the AST type information was restructured with
feedback from this implementation, namely splitting the
InstantiateModule initializer into separate upvar/import variants to
clarify that the item orderings for imports are resolved differently at
runtime.

Much of this commit is also adding infrastructure for any imports at all
into a component. For example a Linker type (analagous to
wasmtime::Linker) was added here as well. For now this type is quite
limited due to the inability to define host functions (it can only work
with instances and instances-of-modules) but it's enough to start
writing *.wast tests which exercise lots of module-related functionality.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 15:14):

alexcrichton requested fitzgen for a review on PR #4208.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 15:30):

alexcrichton updated PR #4208 from component-linker to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2022 at 21:36):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2022 at 14:33):

alexcrichton merged PR #4208.


Last updated: Dec 23 2024 at 12:05 UTC