Skip to content

Conversation

@dicej
Copy link
Collaborator

@dicej dicej commented Jan 9, 2025

  • The generated lift/lower code for stream/future payloads was not always calculating module paths correctly when generating type names.
  • Also, we were moving raw pointers into async move blocks and returning them without capturing the pointed-to memory. This would have been caught by runtime tests, but we don't have those yet since the Wasmtime async PR hasn't been merged yet. Fortunately, it was easy enough to find and fix when I updated that PR to use the latest wit-bindgen.
  • The generated lift/lower code for reading and writing streams needs to return a Box<dyn Future> that captures the lifetimes of the parameters.

- The generated lift/lower code for stream/future payloads was not always calculating module paths correctly when generating type names.
- Also, we were moving raw pointers into `async move` blocks and returning them without capturing the pointed-to memory.  This would have been caught by runtime tests, but we don't have those yet since the Wasmtime async PR hasn't been merged yet.  Fortunately, it was easy enough to find and fix when I updated that PR to use the latest wit-bindgen.
- The generated lift/lower code for reading and writing streams needs to return a `Box<dyn Future>` that captures the lifetimes of the parameters.

Signed-off-by: Joel Dice <[email protected]>
@alexcrichton alexcrichton enabled auto-merge January 9, 2025 19:02
@alexcrichton alexcrichton added this pull request to the merge queue Jan 9, 2025
Merged via the queue into bytecodealliance:main with commit 4f52883 Jan 9, 2025
25 checks passed
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