You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at /Users/antonin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/js-sys-0.3.77/src/lib.rs:3441:1:
cannot call wasm-bindgen imported functions on non-wasm targets
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Error: failed to run main module target/wasm32-wasip1/debug/reqwest_wasi_test.wasm
Hey there! Supporting more environments is usually something we'd be happy to do. All of reqwest's WASM support is contributed by others, I don't have any active work in WASM. So, if you want to help propose how to add support, and implement it, that'd be welcome!
Thanks Sean.
As I am getting into support for WASM (for servers, not browsers) I don't promise anything but I will look at the code later and check how I can modify this or this in order to get both browser & server (without wasm_bindgen) support.
I was wondering if any support for WASM outside the browser (so, excluding wasm_bindgen from reqwest) is planned or not?
As an example, running this simple program on wasmtime does not work, regarding some components use wasm_bindgen to achieve some goals:
Compilation step:
Running step:
The full log output:
Thanks in advance for your response.
The text was updated successfully, but these errors were encountered: