Crates.io | nodejs-sys |
lib.rs | nodejs-sys |
version | 0.15.0 |
source | src |
created_at | 2019-05-06 16:48:47.753339 |
updated_at | 2023-04-22 08:04:01.823702 |
description | Native bindings to the nodejs' n-api |
homepage | |
repository | https://github.com/elmarx/nodejs-sys |
max_upload_size | |
id | 132413 |
size | 53,299 |
Bindings for NodeJS' N-API.
This crate needs llvm
at build-time, since it generates bindings at build-time (by using bindgen).
For Debian/Ubuntu that's a simple apt install llvm libclang-dev
.
Different API versions may be selected via feature-flag. See the N-API Version Matrix for details.
napi_v5
supported by all actively maintained NodeJS releasesnapi_v6
supported by all actively maintained NodeJS releasesnapi_v7
supported by all actively maintained NodeJS releasesnapi_v8
requires at least 15.12.0
, this is the default (if no flag is given)experimental
(off by default)Not all NodeJS Versions change the N-API, so nodejs-sys
gets an update only if the relevant headers have been changed between node versions.
See the (autogenerated) changelog for links to detailed upstream commits.
This crate is very low-level. See neon, they provide N-API Support.
But of course you may also use this crate directly, LogRocket has a nice blog post: Rust and Node.js: A match made in heaven.