cunarist / tokio-with-wasm

Mimicking tokio functionalies on web browsers
MIT License
30 stars 2 forks source link

support target bundler? #9

Open RCasatta opened 1 month ago

RCasatta commented 1 month ago

I've hit:

[INFO]: ⬇️  Installing wasm-bindgen...
error: failed to generate bindings for import of `__wbindgen_placeholder__::__wbindgen_module`

Caused by:
    `wasm_bindgen::module` is currently only supported with `--target no-modules` and `--target web`

I've read in the readme it's expected but maybe support can be added

temeddix commented 1 month ago

Hi @RCasatta , thanks for your participation :)

Currently everything is oriented toward web target. This is because no-modules is considered old from wasm-bindgen.

Therefore, I would recommend you to use the web target somehow if possible.

If you still need to use no-modules, please leave a PR with target-no-modules feature. this commit might be able to help you.