Cargo Features

nodejs-sys has no features set by default.

[dependencies]
nodejs-sys = { version = "0.15.0", features = ["experimental", "napi_v5", "napi_v8"] }
default

no features by default

experimental

enable the experimental API https://nodejs.org/dist/latest-v14.x/docs/api/n-api.html#n_api_usage

napi_v5

select API version of supported versions

napi_v6 napi_v7 napi_v8