-
Notifications
You must be signed in to change notification settings - Fork 36
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
Not wasm compatible #53
Comments
looks like the loading lib error could be resolved if the libloading is updated to at least 0.7.2 - nagisa/rust_libloading#91 libc does not look like it is going to support wasm but I could use wasi to get it to work - rust-lang/libc#858 essentially updating libloading to at least 0.7.2 should resolve this issue |
Thanks for the report and comments. I have never used wasm, but I will surely update libloading and see if this helps. |
Just realized that
I guess all you need is to try running |
Cool I will try this out. My usecase is actually pretty cool IMO. So I am gonna try compiling this to wasm to run the code in the browser. Java by default is not one of the languages that supports WASM but rust does. So if this works basically I will be able to run Java code through rust in the browser. |
No luck I have opened another issue to get more help on this - nagisa/rust_libloading#119 Based on the response there I will close the issue here 👍 |
Out of curiosity, isn't there any sandboxing in place? If yes, then somehow you will need to configure it to access java? And anyhow, isn't it very unsafe to do so? Being able to execute arbitrary Java code via the browser results to a huge attack surface... Ideas like this (see applets) did not work so good regarding security. But hey, don't get me wrong, I like the idea of pushing the tech to the limits. You never know what we can get out of things! |
Tbh I have no idea most of my rust, java, and wasm knowledge has been acquired over this weekend based on my want to run some java code in the browser. I am hoping my issue with rust_libloading will help shed more light on the possibility of me achieving this. |
Turns out what I want to achieve is not possible based on the response from the rust_libloading on the opened issue mentioned above. Closing this issue. |
When trying to build for wasm i get the following errors
The text was updated successfully, but these errors were encountered: