Registry / other / napi-derive

napi-derive

JSON →
library3.5.5rscratesunverified

Procedural macros for generating N-API bindings in Rust.

# Cargo.toml [dependencies] napi-derive = "3.5.5"
INSTALL
IMPORT
SIG · NAPI-DERIVE
N
napi-derive
otherrustv3.5.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

napi
use napi_derive::napi;

Exports a Rust function to Node.js via N-API.

use napi_derive::napi; #[napi] fn add(a: i32, b: i32) -> i32 { a + b }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.5.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
napi-derive — cargo add napi-derive · libregistry