Function neon::sys::setup

source ·
pub unsafe fn setup(env: Env)
Available on crate feature sys only.
Expand description

Loads Node-API symbols from the host process.

Must be called at least once before using any functions in bindings or they will panic.

§Safety

env must be a valid napi_env for the current thread