Repository navigation
Update wasm-bindgen and the Tokio patchset to the host-driven event loop - #1151
Open
guybedford wants to merge 1 commit into
Open
guybedford wants to merge 1 commit into
guybedford wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, soexperimental_tokiohandlers behave as before on the new base.wasm-bindgensubmodule moves to the head of wasm-bindgen#5485EventLoopandLocalEventLoopdriven by a host event loop tokio-rs/tokio#8479, wasm: support the net feature on Emscripten tokio-rs/tokio#8438 and the asynchronous hostname lookup, in place of the1.54.1-cf.emscriptentagThere are no changes to
worker,worker-macrosorworker-build: theEventLoopAPI the macros and the incoming TCP example use is unchanged.The Emscripten example job covers this: the four examples build with
worker-build --emscriptenand pass the wrangler smoke tests, including the hostname lookup inemscripten-tcpand the concurrent inbound connections inemscripten-incoming-tcp.emscripten-sqlxbuilds as well.