-
Notifications
You must be signed in to change notification settings - Fork 81
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
wasm support #102
Comments
What exactly do you mean by working with Wasm? Right now you could compile the crate to Wasm using Emscripten's runtime: |
Yes, the use case I have is that I want to be able to run the same code without modifications both in the browser and as a native application. |
Ups sorry! I think in order to get this started one could look at how |
If looked further into this and WASI could be an option as well. WASI provides sort of a normal standard library for WebAssembly and is both supported by the browser and the most common runtimes. It is accessible via the |
A build error related to openssl is found while I am trying to use it in an app built on wasm and rust. |
Yes, this is not yet implemented. There is no support for the WASM target yet. |
Got it :) You have aldeady done great job. |
any update on this? i would like to use socketio client within leptos but got the same error with wasm |
WASM support would be excellent, it's definitely a nice use case. Rust end to end is powerful. It's been a few years since this ticket was created, I wonder what the limitations are now? I'm not sure where to start if I were to help with this |
I have no knowledge about whether this has gotten easier. I assume it got simpler, since a few dependencies probably started to support wasm behind some flag, so we could use them instead of switching them out for our own logic. Regarding leptos that was mentioned by @philipp1992: I assume this needs the As for concrete steps on how to get there (just my ideas, take it with a grain of salt):
I think this is quite a heavy lift but I agree that it would be awesome to have it!! I am open to mentor someone e.g. through regular calls and PR review, but I unfortunately don't have the time to work on this myself. |
I'm looking for a socket io client crate that works on both wasm and native. Is this something you'd want to add?
The text was updated successfully, but these errors were encountered: