Stream: git-wasmtime

Topic: wasmtime / PR #10844 Merge wasip3-prototyping bindgen cha...


view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 21:58):

alexcrichton requested dicej for a review on PR #10844.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 21:58):

alexcrichton requested wasmtime-core-reviewers for a review on PR #10844.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 22:00):

alexcrichton opened PR #10844 from alexcrichton:backport-wit-bindgen-changes to bytecodealliance:main:

This commit wholesale copies the wasmtime-wit-bindgen changes from the
wasip3-prototyping repository to the Wasmtime repository here. This is
done to make the future merge with wasip3-prototyping smaller
complexity-wise.

This is intended to be a no-functional-change for non-"concurrent"
imports, or those for component model async. That means that it's
intended that no current embedding is affected by these changes.
Internally though there has been restructuring.

Namely internally the generation of an interface trait, a resource
trait, and a world trait are all unified in a single method now. In the
future with component model async these traits are being split into
async/sync versions and so it was much nicer to do this in one location
rather than across three different locations.

This required some minor renamings in the generated code and moving
around some impls, but otherwise the generated code should mostly be the
same as before (see golden output diff in the subsequent commit of this
PR)

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 22:16):

dicej submitted PR review:

Probably out of scope for this PR, but I expect we could uncomment https://github.com/bytecodealliance/wasmtime/blob/d8b369b481cc1d291f6b7cb19700e53550116e92/crates/component-macro/tests/codegen.rs#L15-L23 and make it work by adding a stub Accessor struct and related items. That would give us _some_ test coverage for the concurrent_imports: true and concurrent_exports: true cases.

BTW, I just noticed that code is commented-out in the wasip3-prototyping repo also. Probably an accidental artifact of merging?

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 22:22):

alexcrichton commented on PR #10844:

Oops yeah that's an accident, and yeah I'll work on uncommenting this in wasip3-prototyping and then see what it would take to merge back those changes here

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2025 at 22:43):

alexcrichton merged PR #10844.


Last updated: Dec 06 2025 at 06:05 UTC