Skip to main content

Module crate_schema

Module crate_schema 

Source
Expand description

Arrow schemas for the crate-level dependency graph.

Two tables:

  • CrateNodes: one row per crate (workspace members + notable external crates)
  • CrateEdges: one row per dependency relationship (source depends on target)

These tables are produced by crate::crate_graph::build_crate_graph and can be stored as Parquet snapshots via the Arrow persistence layer.

§Schema rationale

CrateNode id is the crate name (e.g. "nusy-arrow-core"), matching the name field in [package]. CrateEdge sourcetarget represents “source depends on target”. topo_sort_crates returns targets before sources (dependency-first order).

Modules§

crate_edge_col
Named column indices for the CrateEdges schema.
crate_node_col
Named column indices for the CrateNodes schema.

Functions§

crate_edge_schema
Arrow schema for crate dependency edges.
crate_node_schema
Arrow schema for crate nodes.