Skip to content

Conversation

@dicej
Copy link
Contributor

@dicej dicej commented Oct 17, 2023

This is to support resource handle lifting and lowering from the guest's point-of-view. Unlike with the other, structural data types, resource bindings must be either host- or guest-specific (i.e. the bindings are not symmetric).

I'll follow this up with a componentize-js PR that includes a bunch of tests.

Note that I had to update several dependencies to pull in bytecodealliance/wasm-tools#1218, which addresses the case of a WIT world that uses a resource from an interface while also exporting the interface.

This is to support resource handle lifting and lowering from the guest's
point-of-view.  Unlike with the other, structural data types, resource bindings
must be either host- or guest-specific (i.e. the bindings are not symmetric).

I'll follow this up with a `componentize-js` PR that includes a bunch of tests.

Note that I had to update several dependencies to pull in
bytecodealliance/wasm-tools#1218, which addresses the
case of a WIT world that `use`s a resource from an interface while also
exporting the interface.

Signed-off-by: Joel Dice <[email protected]>
Signed-off-by: Joel Dice <[email protected]>
@dicej dicej marked this pull request as ready for review October 17, 2023 23:26
@guybedford guybedford merged commit cb155f0 into bytecodealliance:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants