Libnode Bindings for Rust
This crate exports Rust bindings for Node.js libnode and n-api.
This can be used by:
- Applications embedding
libnode - Applications creating n-api extensions
Installation (embedded)
# Install library
# Download libnode, this must be distributed with your application
# The version below includes a patch with a C FFI for libnode
#
# https://github.com/alshdavid/libnode-prebuilt
#
|
Usage
Embedded
Embedded injecting native module
How to include libnode in your application
I recommend distributing the dynamic library alongside your application and finding it at runtime using a relative path to your executable
/my-application
my-application
libnode.so