Skip to content

Update wasm-bindgen and the Tokio patchset to the host-driven event loop - #1151

Open
guybedford wants to merge 1 commit into
mainfrom
gbedford/tokio-event-loop
Open

guybedford wants to merge 1 commit into
mainfrom
gbedford/tokio-event-loop

Conversation

@guybedford

Copy link
Copy Markdown
Member

This updates the Emscripten examples to wasm-bindgen/wasm-bindgen#5485 and to the Tokio patchset it builds on.

Tokio's event loop support (tokio-rs/tokio#8479) is host-driven: it leaves attaching the loop to a host to the embedder, where the earlier patchset attached it to Emscripten's event loop inside Tokio. wasm-bindgen#5485 does that attaching in wasm-bindgen-futures, so experimental_tokio handlers behave as before on the new base.

There are no changes to worker, worker-macros or worker-build: the EventLoop API the macros and the incoming TCP example use is unchanged.

The Emscripten example job covers this: the four examples build with worker-build --emscripten and pass the wrangler smoke tests, including the hostname lookup in emscripten-tcp and the concurrent inbound connections in emscripten-incoming-tcp. emscripten-sqlx builds as well.

Tokio's event loop (tokio-rs/tokio#8479) now leaves the host to the
embedder, and wasm-bindgen attaches it to the Emscripten event loop
(wasm-bindgen/wasm-bindgen#5485). The examples move to that wasm-bindgen
and to a Tokio revision carrying #8479, #8438 and the asynchronous
hostname lookup. mio 1.2.5 supports the target, so its patch goes.
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.

1 participant