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-wiggle
now supports running async methods via a dummy executor, in order to support running synchronous wasi-common implementations.
wasi-common
now uses anasync_trait
for itsWasiSched
trait methods. This requires thatpoll_oneoff
andsched_yield
become async methods as well.
wasi-cap-std-sync
stays the same, modulo the code golf required to addasync
in front of some fns.
wasi-cap-std-async
is introduced, and for now it is exactly the same aswasi-cap-std-sync
except that sleep and sched_yield are implemented viatokio
.Poll
is for now unsupported! This needs to be fixed in order to merge.
wasmtime-wasi
now exports two differentWasi
s - 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_::Wasi
undertokio
.<!--
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-wiggle
now supports running async methods via a dummy executor, in order to support running synchronous wasi-common implementations.
wasi-common
now uses anasync_trait
for itsWasiSched
trait methods. This requires thatpoll_oneoff
andsched_yield
become async methods as well.
wasi-cap-std-sync
stays the same, modulo the code golf required to addasync
in front of some fns.
wasi-cap-std-async
is introduced, and for now it is exactly the same aswasi-cap-std-sync
except that sleep and sched_yield are implemented viatokio
.Poll
is for now unsupported! This needs to be fixed in order to merge.
wasmtime-wasi
now exports two differentWasi
s - 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_::Wasi
undertokio
. 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: Nov 22 2024 at 16:03 UTC