Skip to content

cymerous/nodejs_lua_bindings_rs

Repository files navigation

Node.js Lua Bindings in Rust

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installation

Clone the repository

git clone https://github.com/cymerous/nodejs_lua_bindings_rs.git

Navigate to the project directory

cd nodejs_lua_bindings_rs

To 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/cli

If you’re using npm, use this command:

npm install -g @napi-rs/cli

Alternatively, if you’re using pnpm, you can use:

pnpm add -g @napi-rs/cli

Build the project

napi build --platform --release

Usage

You 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.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors