This project aims to provide bindings from Lua to Node.js using Rust. It leverages the power of the mlua and napi-rs modules to provide a seamless and efficient interface between the two languages.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Clone the repository
git clone https://github.com/cymerous/nodejs_lua_bindings_rs.gitNavigate to the project directory
cd nodejs_lua_bindings_rsTo build the project, it’s necessary to install the Napi dependency. You can do this using one of the following commands:
If you’re using Yarn, run:
yarn global add @napi-rs/cliIf you’re using npm, use this command:
npm install -g @napi-rs/cliAlternatively, if you’re using pnpm, you can use:
pnpm add -g @napi-rs/cliBuild the project
napi build --platform --releaseYou can find an example in the test.js file, or you can refer to the Lua documentation. However, not all methods are utilized. You can view all available methods here.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details