5 releases (stable)

4.0.0 Sep 27, 2023
3.0.0 Nov 20, 2020
2.0.0 Jul 31, 2020
1.0.0 Apr 4, 2020
0.1.0 Feb 4, 2020

#93 in FFI

Download history 83/week @ 2024-08-21 76/week @ 2024-08-28 130/week @ 2024-09-04 100/week @ 2024-09-11 80/week @ 2024-09-18 96/week @ 2024-09-25 162/week @ 2024-10-02 470/week @ 2024-10-09 415/week @ 2024-10-16 410/week @ 2024-10-23 268/week @ 2024-10-30 426/week @ 2024-11-06 508/week @ 2024-11-13 407/week @ 2024-11-20 194/week @ 2024-11-27 98/week @ 2024-12-04

1,272 downloads per month
Used in 2 crates

Apache-2.0

69KB
2K SLoC

Low level bindings to Nodejs N-API.

Rust wrapper for NodeJs N-API

The code is check-in in order to avoid dependency to LLVM.

Manual re-generation of binding.rs

Prerequisite

This requires LLVM.

Code generation has been tested with LLVM 9 or greater. Older version may work but not guaranteed.

Generation

Run following shell command:

make generate

Which performs following:

  • Install required bindgen execution version
  • Generate src/binding.rs using bindgen binary

No runtime deps