rquickjs_napi/lib.rs
1// SPDX-License-Identifier: MIT OR Apache-2.0
2//! Node-API (N-API) support for loading native `.node` addons.
3//!
4//! [`NapiLoader`] is an `rquickjs` module loader; add it to the loader tuple before
5//! the generic file loaders. The executable must export its symbols (`-rdynamic`) so
6//! that addons can resolve the `napi_*` functions at load time.
7#[cfg(any(unix, windows))]
8mod api;
9mod loader;
10
11pub use self::loader::NapiLoader;