Skip to main content

sapphire_framework_sync/
lib.rs

1//! Transport-agnostic replication core for sapphire-framework workspaces.
2//!
3//! See `docs/superpowers/specs/2026-09-15-p2p-sync-iroh-design.md`, section 2.
4
5mod entry;
6mod error;
7mod filter;
8mod hash;
9mod hlc;
10mod id;
11mod merge;
12pub mod paths;
13mod replica;
14mod report;
15mod staging;
16mod state;
17mod store;
18#[cfg(any(test, feature = "test-util"))]
19pub mod testing;
20mod vv;
21
22pub use entry::{Content, Entry, PathUpdate};
23pub use error::{Error, Result};
24pub use filter::{EMBEDDED_DIR, IGNORE_FILE, SyncFilter};
25pub use hash::{ContentHash, ContentHasher, ParseHashError};
26pub use hlc::{Clock, Hlc, MAX_DRIFT_MS, SystemClock};
27pub use id::ReplicaId;
28pub use merge::{conflict_path, join, needs_copy, winner};
29pub use replica::{ContentSource, DEFAULT_MAX_FILE_SIZE, Replica, ReplicaConfig};
30pub use report::{Conflict, PauseReason, Report, ScanOutcome, SkipReason, Skipped};
31pub use staging::{Stager, StagingWriter};
32pub use state::{DiskState, PathState};
33pub use store::{FORMAT_VERSION, Meta, ReplicaStore};
34pub use vv::{Dot, VersionVector};