From 88b3d05543561d5a34a4ff96b9a8ca9351e1a98d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 18:38:43 +0100 Subject: move SyncSession to document --- src/document/mod.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/document/mod.rs') diff --git a/src/document/mod.rs b/src/document/mod.rs index 2230e47..671bf5d 100644 --- a/src/document/mod.rs +++ b/src/document/mod.rs @@ -36,6 +36,7 @@ pub(crate) mod lock; pub(crate) mod meta; pub(crate) mod replica; pub(crate) mod store; +pub(crate) mod sync; #[cfg(test)] mod tests { @@ -53,17 +54,13 @@ mod tests { } } - /// Automerge is used only in `document`, `remake` and the sync session - /// (`state/session.rs`); the rest of the node names its types as `document` - /// re-exports them and works through `document` (`architecture.md`, The document). + /// Automerge is used only in `document` and `remake`; the rest of the node names + /// its types as `document` re-exports them and works through `document` + /// (`architecture.md`, The document). #[test] fn automerge_stays_behind_document() { let src = Path::new(env!("CARGO_MANIFEST_DIR")).join("src"); - let allowed = [ - src.join("document"), - src.join("remake"), - src.join("state").join("session.rs"), - ]; + let allowed = [src.join("document"), src.join("remake")]; let mut files = Vec::new(); sources(&src, &mut files); let mut found = Vec::new(); -- cgit v1.3.1