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
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0

//! Optional package enrichment: stamp `Package` identity onto extracted facts.
//!
//! The dep-free [`enrich()`] function and [`SymbolId::with_package`](crate::symbol::SymbolId::with_package) are always
//! available. Manifest parsing (`from_manifest`) is behind the `manifest`
//! cargo feature and pulls `toml`/`serde`/`serde_json`.
//!
//! Entry point: `code2graph::package::enrich(&mut facts, &pkg)`.

pub mod enrich;
#[cfg(feature = "manifest")]
pub mod manifest;

pub use enrich::{enrich, enrich_codegraph};
#[cfg(feature = "manifest")]
pub use manifest::from_manifest;