diff options
Diffstat (limited to 'src/document')
| -rw-r--r-- | src/document/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/document/mod.rs b/src/document/mod.rs index e548d01..530e6b6 100644 --- a/src/document/mod.rs +++ b/src/document/mod.rs @@ -13,6 +13,12 @@ pub(crate) use automerge::{ ScalarValue, }; +/// The version of Automerge this build makes documents with: a remake needs the same on +/// every node, and a federation the same encoding of a change (`remake::snapshot`). +pub(crate) fn engine_version() -> &'static str { + Document::new().stats().cargo_package_version +} + /// How many writers (actors) `doc`'s changes have: from the changes' metadata, in /// time proportional to the document. pub(crate) fn writers(doc: &Document) -> usize { |
