Skip to main content

Crate rquickjs_napi

Crate rquickjs_napi 

Source
Expand description

Node-API (N-API) support for loading native .node addons.

NapiLoader is an rquickjs module loader; add it to the loader tuple before the generic file loaders. The executable must export its symbols (-rdynamic) so that addons can resolve the napi_* functions at load time.

Structs§

NapiLoader
Loads .node files as modules whose default export is the addon’s module.exports. Enumerable string keys that are valid identifiers are also exposed as named exports.