diff options
| author | snek <snek@deno.com> | 2024-07-22 11:41:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-22 11:41:59 -0700 |
| commit | 92abdb7669d81b656ae0505cf923fca3b7feea01 (patch) | |
| tree | 51b69d12fc67351f979246d86fc9cfdf369dde48 /ext/napi/lib.rs | |
| parent | a459b43d59d2f8f055f3ecda30d1cf0fed2e181f (diff) | |
chore: move all node-api impl to ext (#24662)
these symbols are re-exported from runtime/cli using `build.rs`, so we
don't need them in the same crate.
Diffstat (limited to 'ext/napi/lib.rs')
| -rw-r--r-- | ext/napi/lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 829839838..503921634 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -5,6 +5,21 @@ #![allow(clippy::undocumented_unsafe_blocks)] #![deny(clippy::missing_safety_doc)] +//! Symbols to be exported are now defined in this JSON file. +//! The `#[napi_sym]` macro checks for missing entries and panics. +//! +//! `./tools/napi/generate_symbols_list.js` is used to generate the LINK `cli/exports.def` on Windows, +//! which is also checked into git. +//! +//! To add a new napi function: +//! 1. Place `#[napi_sym]` on top of your implementation. +//! 2. Add the function's identifier to this JSON list. +//! 3. Finally, run `tools/napi/generate_symbols_list.js` to update `cli/napi/generated_symbol_exports_list_*.def`. + +pub mod js_native_api; +pub mod node_api; +pub mod util; + use core::ptr::NonNull; use deno_core::error::type_error; use deno_core::error::AnyError; |
