Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Graph snapshot serialization.

Originally a single graph/snapshot.rs (724 LOC); split per the 2026-05-11 kernel decomposition pass into three sub-modules:

  • to — Graph::to_snapshot
  • from — Graph::from_snapshot

This mod.rs keeps the small shared pieces: the remove_url_mapping helper (used by both directions), [containment_parent_url] (used by from_snapshot and by graph mutators in mod.rs’s impl block), and the rkyv trait impls (Archive / Serialize / Deserialize) plus impl Default for Graph, all of which are short standalone items.

Modules§

from
Graph::from_snapshot — reconstruct the runtime graph from a persisted GraphSnapshot.
to
Graph::to_snapshot — serialize the runtime graph into a GraphSnapshot for persistence.