automerge-persistent 0.3.0

The core library for managing persistent state of Automerge documents
Documentation

A library for constructing efficient persistent automerge documents.

A [PersistentAutomerge] wraps an [automerge::Automerge] and handles making the changes applied to it durable. This works by persisting every change before it is applied to the document. Then occasionally the user should call compact to save the document in a more compact format and cleanup the included changes. This strategy aims to be fast while also being space efficient (up to the user's requirements).

# use automerge_persistent::MemoryPersister;
# use automerge_persistent::PersistentAutomerge;
let persister = MemoryPersister::default();
let doc = PersistentAutomerge::load(persister).unwrap();