This repository contains examples demonstrating the integration of Rust with Node.js and front-end applications using WebAssembly (WASM). The examples include various methods to connect Rust with Node.js, such as using the Neon library, NAPI-RS, WebAssembly, and Foreign Function Interface (FFI).
A simple example of creating a native Node.js module using the Neon library.
An example demonstrating how to use NAPI-RS for writing Node.js native addons in Rust.
An example of compiling Rust code to WebAssembly and using it in a Node.js application.
An example of compiling Rust code to WebAssembly and using it in a Web application.
An example showing how to call Rust functions from Node.js using FFI.
For a detailed explanation of these examples and more, check out my Medium article:
Understanding Rust and Its Integration with Node.js & Front-End Applications
Feel free to connect with me on LinkedIn or check out my other projects on GitHub.
Thank you for exploring these examples. Your feedback and contributions are welcome!