Skip to content

Conversation

@dicej
Copy link
Collaborator

@dicej dicej commented Jun 9, 2025

This updates wit-bindgen-rt etc. to use (some of) the new ABI defined in WebAssembly/component-model#524. It covers everything in that PR except the lifting and lowering changes to future.{read,write}, which we decided are more trouble than they're worth.

I've tested this end-to-end with wasip3-prototyping and will soon post a corresponding PR there.

Finally, rustfmt was complaining about using gen as a field name, so I took this opportunity to address that.

This updates `wit-bindgen-rt` etc. to use (some of) the new ABI defined in
WebAssembly/component-model#524.  It covers everything
in that PR _except_ the lifting and lowering changes to `future.{read,write}`,
which we decided are more trouble than they're worth.

I've tested this end-to-end with `wasip3-prototyping` and will soon post a
corresponding PR there.

Finally, `rustfmt` was complaining about using `gen` as a field name, so I took
this opportunity to address that.

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

fix rust codegen build errors

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

snapshot

Signed-off-by: Joel Dice <[email protected]>
let mut gen = self.interface(resolve, true, Some(&wasm_import_module));
gen.interface = Some((id, name));
gen.define_interface_types(id);
let mut r#gen = self.interface(resolve, true, Some(&wasm_import_module));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do this in a follow-up but I'd prefer to avoid r#gen. I understand it's the machine-applicable way to migrate from one edition to another but no one really wants to either read or write r#gen over time so I'd prefer to go through and update things to generator or similar.

@dicej
Copy link
Collaborator Author

dicej commented Jun 9, 2025

I'm going to try to fix the Test Async CI job before merging this.

@dicej dicej enabled auto-merge June 9, 2025 23:12
@dicej dicej added this pull request to the merge queue Jun 9, 2025
Merged via the queue into bytecodealliance:main with commit 34e399e Jun 10, 2025
19 checks passed
@dicej dicej deleted the future-and-stream-changes branch June 10, 2025 00:00
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