From dfe0daa99e6e545f647715b73929cc3e244e8e0d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 19:51:52 +0100 Subject: store function accept any document --- src/document/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/document/mod.rs') diff --git a/src/document/mod.rs b/src/document/mod.rs index a348774..9633241 100644 --- a/src/document/mod.rs +++ b/src/document/mod.rs @@ -2,8 +2,10 @@ //! (merged-view paths over JSON) the HTTP API and remakes work with. /// The engine's types, under the names the rest of the crate uses: the document -/// (Automerge's `AutoCommit`), its changes and their hashes, and its writers (actors). +/// (Automerge's `AutoCommit`), its changes and their hashes, and its writers (actors); +/// and what can be written like a document (`Transactable`). /// Only `document` and `remake` use Automerge itself (`architecture.md`, The document). +pub(crate) use automerge::transaction::Transactable; pub(crate) use automerge::{ActorId, AutoCommit as Document, Change, ChangeHash}; /// The whole document as bytes, as the engine saves it: a backup, the document -- cgit v1.3.1