Skip to main content

Module export

Module export 

Source
Expand description

Markdown and mem-archive export.

export_markdown regenerates entity files from the store, only writing files that actually changed (incremental). Compares generated markdown against the current file on disk byte-for-byte.

export_mem zips a mem directory into a portable .mem archive with deterministic output (sorted entries, fixed mtime).

Enums§

MemExportError

Functions§

export_entity
Export a single entity by ID.
export_markdown
Regenerate all entity markdown files from the in-memory store. Only writes files that have changed (incremental export).
export_mem
Export a mem directory as a portable .mem archive.
export_mem_from_branch
Export a mem as a portable .mem archive by walking the mem-repo-git branch tree directly — the git-object storage path’s counterpart to export_mem. No working tree is consulted; all .md content comes from the per-mem branch tip, sorted by path for deterministic archive bytes.
export_mem_from_branch_to_bytes
Byte-shaped counterpart to export_mem_from_branch. Same wire format, same determinism contract, no on-disk artifact — the bytes are the output. The engine’s export_mem_to_bytes dispatches to this for git-branch mounts via the memstead_base::GitBranchOps bundle so byte-snapshot consumers (the bridge, future WASM replicas) treat folder and git-branch backends symmetrically.