code2graph 0.0.0-beta.6

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
//! Python (PyO3) ABI spec. `#[pyfunction]` exports under the function name; a
//! `#[pyfunction(name = "…")]` or `#[pyo3(name = "…")]` attribute overrides it.
use crate::graph::types::FfiAbi;

pub(crate) const SPEC: super::spec::AbiSpec = super::spec::AbiSpec {
    abi: FfiAbi::Python,
    consumers: &["python"],
    rust_attr_markers: &["pyfunction"],
    rust_name_override_markers: &["pyfunction", "pyo3"],
    name_prefix: None,
};