/napi-sys

Low-level bindings to N-API to be wrapped with high-level APIs

Primary LanguageRustMIT LicenseMIT

napi-sys

Travis Build Status AppVeyor Build Status

Low-level N-API bindings for Node.js addons written in Rust.

See the napi crate for the high-level API.

Building

Requirements:

  • Install bindgen (cargo install bindgen) and its requirements
  • Install rustfmt (rustup component add rustfmt)
  • Install node.js

After doing that, you can build a new version of the bindings like so:

./scripts/update-bindings.sh