Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few stream/future issues #1118

Merged
merged 1 commit into from
Jan 9, 2025

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