Stream: git-wasmtime

Topic: wasmtime / PR #11618 wasip3: Update std{out,err} implemen...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 15:42):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #11618.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 15:42):

alexcrichton opened PR #11618 from alexcrichton:wasip3-stdio-blocking to bytecodealliance:main:

Match the WASIp2 stdio implementation and "lie" about stdio actually being async. Instead of using Tokio's primitives use the std::io primitives which will block the current program while the output is produced. This matches WASIp2 semantics and we always have the option of making this more async in the future (or even have it as a runtime flag). This avoids the need to call poll_flush in stdio unconditionally in the wasi:cli implementation which didn't feel quite right.

<!--
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 (Sep 05 2025 at 15:42):

alexcrichton requested dicej for a review on PR #11618.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 15:42):

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

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 16:25):

dicej submitted PR review:

Seems reasonable to me, and embedders still have the option of configuring their WasiCtx with stdio streams that use tokio::io::std{out,err}() (or an auto-flushing wrapper around them) to get the previous behavior, if desired.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 17:02):

alexcrichton updated PR #11618.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 17:02):

alexcrichton has enabled auto merge for PR #11618.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 18:06):

alexcrichton merged PR #11618.


Last updated: Dec 06 2025 at 06:05 UTC