Using Rust from within Node.js. Or extending Node.js via N-API using NAPI-RS.

Several ways exists to run Rust code from within Node.js. In this post we will look at a relatively smart one, that is, NAPI-RS.

First of all, for what reason makes it sense to have Node.js calling Rust functions?

This question has many answers and we cannot possible cover all the scenarios. Let me give an…

--

--

I am a mathematician and software developer who likes writing advanced code and to do research in applied and pure mathematics.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
applied.math.coding

I am a mathematician and software developer who likes writing advanced code and to do research in applied and pure mathematics.