neon-bindings / neon

Rust bindings for writing safe and fast native Node.js modules.
https://www.neon-bindings.com/
Apache License 2.0
8.05k stars 284 forks source link

feat(neon): sys feature to give access to Node-API #970

Closed kjvalencik closed 1 year ago

kjvalencik commented 1 year ago

There have been multiple examples where users would like to do something that extends Neon, but requires direct access to Node-API. Sometimes these features to not align with Neon's philosophy.

As an escape hatch, we provide an unsafe sys feature that exposes Node-API and conversions to and from Neon types.