Goodme Frontend Team
Goodme Frontend Team
Dec 16, 2024 · Backend Development

Understanding N-API vs ABI: Build Efficient Node.js Native Addons with Rust

This article demystifies the relationship between Node.js's N‑API and the underlying Application Binary Interface (ABI), explaining their definitions, comparing their abstraction levels, cross‑platform compatibility, memory management, and performance, and provides concrete Rust code examples for both raw ABI and N‑API implementations.

FFIN-APIRust
0 likes · 8 min read
Understanding N-API vs ABI: Build Efficient Node.js Native Addons with Rust
Alipay Experience Technology
Alipay Experience Technology
Apr 27, 2023 · Backend Development

Mastering NAPI‑RS: Build Cross‑Platform Node.js Native Addons with Rust

This article introduces NAPI‑RS, a Rust‑based framework for creating pre‑compiled Node.js native extensions, covering project setup, multi‑platform distribution, type generation, module registration, advanced usage patterns, and debugging techniques to help developers efficiently bridge Rust and JavaScript.

Cross‑platformNAPI-RSNode.js
0 likes · 17 min read
Mastering NAPI‑RS: Build Cross‑Platform Node.js Native Addons with Rust