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

#57 in FFI

Download history 689/week @ 2023-12-15 229/week @ 2023-12-22 420/week @ 2023-12-29 231/week @ 2024-01-05 485/week @ 2024-01-12 212/week @ 2024-01-19 526/week @ 2024-01-26 405/week @ 2024-02-02 339/week @ 2024-02-09 262/week @ 2024-02-16 481/week @ 2024-02-23 494/week @ 2024-03-01 229/week @ 2024-03-08 368/week @ 2024-03-15 286/week @ 2024-03-22 185/week @ 2024-03-29

1,124 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