alexcrichton opened PR #7050 from alexcrichton:exported-resources
to bytecodealliance:main
:
This commit updates the
wasmtime::component::bindgen!
to support exported resources. Exported resources are themselves always modeled asResourceAny
at runtime and are required to perform dynamic type checks to ensure that the right type of resource is passed in. Exported resources have their ownGuestXXX
structure exported to namespace all of their methods. Otherwise, like imports, there's not a whole lot of special treatment of exported resources.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested pchickey for a review on PR #7050.
alexcrichton requested wasmtime-core-reviewers for a review on PR #7050.
alexcrichton updated PR #7050.
pchickey submitted PR review.
alexcrichton merged PR #7050.
Last updated: Nov 22 2024 at 16:03 UTC