code2graph 0.0.0-beta.2

Purpose-neutral code-graph extraction: source files → symbols, references, and cross-file edges. Tree-sitter based, no storage opinion.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: Apache-2.0
//! Node.js native addon (napi-rs) ABI spec. `#[napi]` exports under the function
//! name; `#[napi(js_name = "…")]` overrides the JS-facing name.
use crate::graph::types::FfiAbi;

pub(crate) const SPEC: super::spec::AbiSpec = super::spec::AbiSpec {
    abi: FfiAbi::NodeApi,
    consumers: &["javascript", "typescript"],
    rust_attr_markers: &["napi"],
    rust_name_override_markers: &["napi"],
    name_prefix: None,
};