Skip to main content

Crate clasp_journal

Crate clasp_journal 

Source
Expand description

Event log and state persistence for CLASP routers.

Provides append-only journal storage for all state mutations, enabling crash recovery, state replay, and federation sync.

§Backends

  • MemoryJournal – in-memory ring buffer for dev/testing
  • [SqliteJournal] – persistent SQLite storage (requires sqlite feature)
  • DefraJournal – DefraDB P2P backend via Merkle CRDTs (see clasp-journal-defra crate)

Re-exports§

pub use entry::JournalEntry;
pub use entry::ParamSnapshot;
pub use error::JournalError;
pub use error::Result;
pub use journal::Journal;
pub use memory::MemoryJournal;

Modules§

entry
Journal entry types
error
Journal error types
journal
Journal trait definition
memory
In-memory journal implementation (ring buffer)