Note: works only for Node.js v16.18
This is an example of using a dynamic library written in Rust within Node.js with FFI
git clone https://github.com/Mefistophell/node-rust-ffi.git
cd node-rust-ffi
npm i
cargo build --release
node index.js
Links to articles:
How to use a dynamic library written in Rust with Node.js
Используем написанную на Rust динамическую библиотеку в Node.js