Stream: git-wasmtime

Topic: wasmtime / PR #12185 generate `wasmtime-wasi` export bind...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 15:51):

dicej requested alexcrichton for a review on PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 15:51):

dicej opened PR #12185 from dicej:wasmtime-run-await-task to bytecodealliance:main:

Previously, wasmtime run only ran wasi:cli/run@0.3.x tasks until they returned a result, then exited. That meant any post-return computation done by the task might not have a chance to run.

This commit aligns wasmtime-wasi with what wasmtime-wasi-http was already doing: specifying the task_exit option for export bindings to wasmtime-wit-bindgen so the host can .await both the return value _and_ the task completion. It also modifies the wasmtime run implementation to await both.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 15:51):

dicej requested wasmtime-core-reviewers for a review on PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 15:51):

dicej requested wasmtime-wasi-reviewers for a review on PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:13):

dicej updated PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:41):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 16:41):

alexcrichton created PR review comment:

Instead of sleeping could this yield 5 or so times and then print? That should force the main return to happen without introducing any sort of timing here

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 23:06):

dicej updated PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 23:06):

dicej has enabled auto merge for PR #12185.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2025 at 23:41):

dicej merged PR #12185.


Last updated: Jan 09 2026 at 13:15 UTC