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

#77 in FFI

Download history 178/week @ 2024-03-11 402/week @ 2024-03-18 226/week @ 2024-03-25 298/week @ 2024-04-01 255/week @ 2024-04-08 158/week @ 2024-04-15 139/week @ 2024-04-22 417/week @ 2024-04-29 157/week @ 2024-05-06 181/week @ 2024-05-13 346/week @ 2024-05-20 106/week @ 2024-05-27 158/week @ 2024-06-03 140/week @ 2024-06-10 196/week @ 2024-06-17 159/week @ 2024-06-24

664 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