diff options
Diffstat (limited to 'src/document')
| -rw-r--r-- | src/document/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/document/mod.rs b/src/document/mod.rs index 2e65bee..e219ce4 100644 --- a/src/document/mod.rs +++ b/src/document/mod.rs @@ -46,6 +46,10 @@ impl std::fmt::Debug for UnitId { } } +/// The kind of document this build holds, as nodes say it to each other in handshakes +/// (`docs/document.md`): a swarm is of one kind. +pub(crate) const KIND: &str = "automerge"; + /// 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 { |
