https://github.com/napi-rs/napi-sys
Low-level bindings to N-API to be wrapped with high-level APIs
https://github.com/napi-rs/napi-sys
Last synced: 7 months ago
JSON representation
Low-level bindings to N-API to be wrapped with high-level APIs
- Host: GitHub
- URL: https://github.com/napi-rs/napi-sys
- Owner: napi-rs
- License: mit
- Created: 2017-12-01T05:13:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T03:09:37.000Z (almost 6 years ago)
- Last Synced: 2025-03-29T19:34:25.717Z (7 months ago)
- Language: Rust
- Size: 124 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# napi-sys
[![Travis Build Status][travis-badge]][travis-url]
[![AppVeyor Build Status][appveyor-badge]][appveyor-url]
Low-level N-API bindings for Node.js addons written in Rust.
See the [napi][] crate for the high-level API.
[napi]: https://github.com/napi-rs/napi
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/c3j49iki8o83q6ey/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/aqrln/napi-sys
[travis-badge]: https://travis-ci.org/napi-rs/napi-sys.svg?branch=master
[travis-url]: https://travis-ci.org/napi-rs/napi-sys
## Building
Requirements:
- Install bindgen (`cargo install bindgen`) and [its requirements](https://rust-lang.github.io/rust-bindgen/requirements.html)
- Install rustfmt (`rustup component add rustfmt`)
- Install [node.js](https://nodejs.org)
After doing that, you can build a new version of the bindings like so:
./scripts/update-bindings.sh