Skip to content

Offloading work to web workers in deployments using a bundler #3769

Answered by kmdouglass
kmdouglass asked this question in Q&A
Discussion options

You must be logged in to vote

Based on help from others here, on the Rust language form, and the demo project in wasm-bindgen-rayon, I can indeed confirm that it is possible and actually straightforward to deploy a JS + Rust/Wasm app with support for WebAssembly threads via a bundler. I made a minimal example here: https://github.com/kmdouglass/playground/tree/main/wasm-threads-bundler

@daxpedda I think that the wasm-bindgen guide might be worth updating or amending. As was mentioned in #3720 , there's nothing special about the web build target, and the fact that one of the primary targets is named bundler can mislead one into thinking that only this target can be used with a bundler.

Do you have any suggestions for w…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@kmdouglass
Comment options

@kmdouglass
Comment options

@daxpedda
Comment options

Comment options

You must be logged in to vote
1 reply
@daxpedda
Comment options

Answer selected by kmdouglass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3768 on January 09, 2024 11:08.