-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when trying to run with dependencies #3640
Comments
I don't think that's the issue. It might be because you're using |
In facts it was a test I didn't do, building with I'm building with I see that with #3233 everything will stop working, I'll have to find another approach... |
You don't need to use wasm-bindgen if you want to use WASI. If a dependency can't be compiled to wasm32-unknown-unknown, it can't be run in browser anyway. I suggest you look into WASI runtimes such as wasmtime for running your app as WASM |
As far as I know, to return an object froma wasi exposed method you'll need
the same approach used by wasm-bindgen.
Anyway I've filled the codebase of conditional compilation to exclude
non-wasm compatible crates when building for wasm, that is inelegant but
solved the problem.
You can close the issue (I can't right now)
Il mer 4 ott 2023, 17:57 Muhammad Hamza ***@***.***> ha
scritto:
… You don't need to use wasm-bindgen if you want to use WASI. If a
dependency can't be compiled to wasm32-unknown-unknown, it can't be run in
browser anyway.
I suggest you look into WASI runtimes such as wasmtime for running your
app as WASM
—
Reply to this email directly, view it on GitHub
<#3640 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZXINLW6LFBMY437E3QXALX5WBNNAVCNFSM6AAAAAA5RIF5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXGE3TENJUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
wasm-bindgen
panics on my application with this message:From what I've been able to understand, this is due the fact my application generates more than one
wasm
file intarget/wasm32-wasi/release/deps/
, where the second one is calledwasm_streams-4a21c93a06539d08.wasm
.If I remove the proc-macro and manually export my methods as
extern "C"
(thus removing all the describing code),wasm-bindgen
starts working and exports what I think are methods from the otherwasm
file.What's the solution in this situation?
The text was updated successfully, but these errors were encountered: