-
Notifications
You must be signed in to change notification settings - Fork 288
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
Having some trouble using rusty_v8 #603
Comments
Neon is specifically for building modules against node.js and not v8. Neon includes Node header files which in turn include v8 header files. It's likely that these symbol definitions are conflicting. I am closing this issue because it appears outside the scope of Neon. Please let me know if that's not the case! |
I am building against node.js, Im just testing out a "serverless" type thing for discord bots platform, and for that I need to run some js code. |
I'm not sure if node would support other instances of If it is supported, it might be neon = { version = "0.4.2", default-features = false, features = ["napi-runtime"] } An alternative approach is to call into node.js with the |
Thank you, switching to napi-runtime worked perfectly. |
Glad I could help! That means the issues may have to do with linking. There a few caveats that likely apply:
|
Who needs windows support anyway? |
As the title says, using rusty_v8 is not working for me, im on Arch linux x86_64, Node v12.18.1, rustc 1.48.0-nightly (fb1dc34a8 2020-09-21)
I made a simple project with
neon new neonb
, Filled it out with a basic skeleton for a discord bot, before adding some rust code to initialize the v8 js engine.it didnt work (Same error as below), so I started stripping away some code, until i was left with just
const rusty = require('../native')
and
If i remove the
use rusty_v8 as v8;
the code compiles just fine, but if I keep it, I get the following error on runtime:Im not sure if this is a problem, since rusty_v8 is a binding to Chromium's V8 engine, and neon isnt compatable with things of that nature, but any help on this would be greatly appreciated. I can give more information if needed.
neon-cli version ^0.4.0
neon-build 0.4.0
neon 0.4.0
The text was updated successfully, but these errors were encountered: