Skip to main content

Crate vanta_state

Crate vanta_state 

Source
Expand description

vanta-state — the redb-backed persistent state store.

Holds the index/history/cache tables described in docs/23-data-and-state-model.md: the store index, generation history, GC roots, the resolution cache, and a meta table (schema version + the current generation pointer). Records are serialized to bytes with serde_json and stored under typed redb tables; all writes are transactional.

The store/caches (raw content-addressed bytes) live on the filesystem, not here — this crate is metadata only.

Structs§

GenerationRecord
An immutable generation record (docs/12-updates.md, docs/23).
State
The persistent state database.
StoreEntryMeta
Metadata catalogued for a materialized store entry (docs/23).

Constants§

SCHEMA_VERSION
The state-DB schema version (docs/23 §schema-versioning-and-migration).