From 92abdb7669d81b656ae0505cf923fca3b7feea01 Mon Sep 17 00:00:00 2001 From: snek Date: Mon, 22 Jul 2024 11:41:59 -0700 Subject: 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. --- cli/napi/mod.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 cli/napi/mod.rs (limited to 'cli/napi/mod.rs') diff --git a/cli/napi/mod.rs b/cli/napi/mod.rs deleted file mode 100644 index 122d2ff06..000000000 --- a/cli/napi/mod.rs +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -#![allow(unused_mut)] -#![allow(non_camel_case_types)] -#![allow(clippy::undocumented_unsafe_blocks)] - -//! 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; -- cgit v1.2.3