alexcrichton opened PR #2590 from module-closures
to main
:
This commit fully implements outer aliases of the module linking
proposal. Outer aliases can now handle multiple-level-up aliases and now
properly also handle closed-over-values of modules that are either
imported or defined.The structure of
wasmtime::Module
was altered as part of this commit.
It is now a compiled module plus two lists of "upvars", or closed over
values used when instantiating the module. One list of upvars is
compiled artifacts which are submodules that could be used. Another is
module values that are injected via outer aliases. Serialization and
such have been updated as appropriate to handle this.
alexcrichton requested peterhuene for a review on PR #2590.
peterhuene submitted PR Review.
alexcrichton merged PR #2590.
Last updated: Nov 22 2024 at 16:03 UTC