pchickey opened PR #2761 from pch/wasmtime_wiggle_alias_host_funcs
to main
:
This addition to wasmtime-wiggle makes it possible to add a function to a
Config
under an arbitrary name.Embeddings that allow Wasm functions defined by wiggle to be imported under additional names (for example, for legacy compatibility) can do so by writing their own
Linker
invocation, but functions were added to aConfig
under only the name specified by the witx file. Now, in addition to the defaultadd_to_config
behavior, you canadd_<functionname>_to_config(&mut config, module: &str, field: &str)
as well.<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
pchickey requested alexcrichton for a review on PR #2761.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
stray debugging printlns?
alexcrichton submitted PR Review.
pchickey submitted PR Review.
pchickey created PR Review Comment:
oops thanks
pchickey updated PR #2761 from pch/wasmtime_wiggle_alias_host_funcs
to main
.
alexcrichton merged PR #2761.
Last updated: Dec 23 2024 at 12:05 UTC