-
Notifications
You must be signed in to change notification settings - Fork 102
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
How to generate a WASM build? #102
Comments
Hi and thanks for opening the issue. Unfortunately i don't think the ultimate goal you're trying to achieve by compiling it to a WASM target is achievable. Enigo is very dependent on the platform it is targeting/running on because it needs to invoke specific system functionality that is not present in WASM AFAIK. I don't think any WASM-Runtime has equivalent functionality currently. What is your goal anyway? |
[sorry accidentally click the close button, that was not intentional] |
Thanks for the details @pythoneer. I was thinking of writing a nodejs binding for |
@VikramTiwari Any progress about this? I need a nodejs binding for enigo too. |
Hey @SOVLOOKUP no! I wasn't able to make it work. Let me know if you get some progress on it. |
@VikramTiwari No... But I find https://github.com/nut-tree/nut.js is also a good choice |
@VikramTiwari I have a very good news! neon could compile rust code into native Node.js modules. Are you still interested in this idea?Let's using rdev and neon to create a modern package that replaces iohook and robotjs! |
It's done. I created this library ( rubickbase ) to replace iohook and robotjs! |
@VikramTiwari Any progress about this? I have this problem too |
Describe your Question
I am trying to generate a WASM build for the project, but I am running into some issues.
Describe your Goal
I am using
cargo
to build a WASM build for the project that I aim to use with a node.js project. To achieve this, I am doing following:Cargo.toml
file and add followingcargo build --target wasm32-unknown-unknown --release --verbose
I get following error:
I am sure I am missing something basic but I don't have any experience in Rust and thus the question. Any pointers would be helpful. Thanks!
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: