-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Importing a native module #296
Comments
Maybe the solution is to compile native modules to wasm files and import into deno? I know that with Node.js you can use the WebAssembly.compile() function just like you can in the browser so maybe deno should support this. |
I'm talking about importing libraries that talk to the underlying operating system.
These things are inherently native and can't be 'compiled' to wasm. |
Good point, for legacy software there would need to be a way to interface with it. But for new software, there are emerging standards like WebUSB that I think deno should adopt. https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web |
Before we think about how to have native addons, I want to release a crate #1209 - that provides a way to link in native code (albeit only if you're building your own executable) |
Closed in #3372. |
How would I implement something like a thin layer above I might be missing something obvious in terms of how to pass references as |
I know that using protobufs simplifies the writing of native modules, but how does importing them work?
What's the structure of it supposed to be?
How do we specify how the native module should be built?
The text was updated successfully, but these errors were encountered: