pchickey edited PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey edited PR #2832 from pch/wiggle_sync_shimming to main:
wasmtime-wigglenow supports running async methods via a dummy executor, in order to support running synchronous wasi-common implementations.
wasi-commonnow uses anasync_traitfor itsWasiSchedtrait methods. This requires thatpoll_oneoffandsched_yieldbecome async methods as well.
wasi-cap-std-syncstays the same, modulo the code golf required to addasyncin front of some fns.
wasi-cap-std-asyncis introduced, and for now it is exactly the same aswasi-cap-std-syncexcept that sleep and sched_yield are implemented viatokio.Pollis for now unsupported! This needs to be fixed in order to merge.
wasmtime-wasinow exports two differentWasis - one undersync::and one underasync_::. This is a breaking API change. Almost all users will want to use the one undersync::. Should I maybe re-export that at the top level by default?A new example shows using
wasmtime_wasi::async_::Wasiundertokio.<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey edited PR #2832 from pch/wiggle_sync_shimming to main:
wasmtime-wigglenow supports running async methods via a dummy executor, in order to support running synchronous wasi-common implementations.
wasi-commonnow uses anasync_traitfor itsWasiSchedtrait methods. This requires thatpoll_oneoffandsched_yieldbecome async methods as well.
wasi-cap-std-syncstays the same, modulo the code golf required to addasyncin front of some fns.
wasi-cap-std-asyncis introduced, and for now it is exactly the same aswasi-cap-std-syncexcept that sleep and sched_yield are implemented viatokio.Pollis for now unsupported! This needs to be fixed in order to merge.
wasmtime-wasinow exports two differentWasis - one undersync::and one underasync_::. This is a breaking API change. Almost all users will want to use the one undersync::. Should I maybe re-export that at the top level by default?A new example shows using
wasmtime_wasi::async_::Wasiundertokio. It incorporates a lot of comments @alexcrichton wrote previously. https://github.com/bytecodealliance/wasmtime/blob/759019811ef5b28a99ea56ec640102fb27a2f110/examples/tokio/main.rs<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey updated PR #2832 from pch/wiggle_sync_shimming to main.
pchickey has marked PR #2832 as ready for review.
Last updated: Dec 13 2025 at 19:03 UTC