Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit sorts Resolve::exports a bit more to place exported functions first. While not strictly necessary this makes it easier for bindings generators to consume because it means they'll visit exported functions first before exported interfaces, meaning that any references to types will be more likely to reach the imported interfaces they refer to, which is what's expected.

This commit sorts `Resolve::exports` a bit more to place exported
functions first. While not strictly necessary this makes it easier for
bindings generators to consume because it means they'll visit exported
functions first before exported interfaces, meaning that any references
to types will be more likely to reach the imported interfaces they refer
to, which is what's expected.
@alexcrichton alexcrichton enabled auto-merge (squash) September 26, 2023 20:54
@alexcrichton alexcrichton merged commit 34f0bb8 into bytecodealliance:main Sep 26, 2023
@alexcrichton alexcrichton deleted the sort-funcs-first branch September 26, 2023 21:05
dicej added a commit to bytecodealliance/componentize-py that referenced this pull request Sep 28, 2023
This requires bytecodealliance/wasm-tools#1226 and an
updated Wasmtime to pull in
bytecodealliance/wasm-tools#1218, which means pointing
to bleeding-edge git dependencies for the time being.
dicej added a commit to bytecodealliance/componentize-py that referenced this pull request Sep 28, 2023
This requires bytecodealliance/wasm-tools#1226 and an
updated Wasmtime to pull in
bytecodealliance/wasm-tools#1218, which means pointing
to bleeding-edge git dependencies for the time being.
dicej added a commit to bytecodealliance/componentize-py that referenced this pull request Sep 28, 2023
* implement resource support

This requires bytecodealliance/wasm-tools#1226 and an
updated Wasmtime to pull in
bytecodealliance/wasm-tools#1218, which means pointing
to bleeding-edge git dependencies for the time being.

* fix clippy warning

Signed-off-by: Joel Dice <[email protected]>

---------

Signed-off-by: Joel Dice <[email protected]>
dicej added a commit to dicej/jco that referenced this pull request 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 `use`s a resource from an interface while also
exporting the interface.

Signed-off-by: Joel Dice <[email protected]>
guybedford pushed a commit to bytecodealliance/jco that referenced this pull request Oct 17, 2023
* resource support for `componentize-js`

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]>

* fix test regressions

Signed-off-by: Joel Dice <[email protected]>

---------

Signed-off-by: Joel Dice <[email protected]>
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