Skip to main content

Module migrate

Module migrate 

Source
Expand description

One-shot CMA tree import + export (v0.4.1 P0-2).

Structs§

ImportSummary

Functions§

export_to_tree
Export a synthesized CMA tree from a list of (path, body) pairs. Used by tests + by mnemo cma export so users can leave mnemo cleanly.
import_cma_tree
Walk a CMA .memory/ tree and produce a deterministic ImportSummary. The actual engine ingestion is wired in by the caller (the binary in mnemo-cli); this fn is pure so the summary is byte-identical between two runs over the same tree.
tree_digest
Hash a CMA tree’s body content into a 32-byte SHA-256 so two trees with the same files-and-bytes produce the same digest. Used by the round-trip test.