Skip to main content

appcore_sync/
lib.rs

1// =============================================================================
2//        #######
3//     ###       ###     F: lib.rs
4//    ##   ## ##   ##    P: AppCore-Runtime
5//         ## ##
6//                       C: 2026/05/29 20:47:35 by dnettoRaw
7//    ##   ## ##   ##    U: 2026/08/02 00:04:12 by dnettoRaw
8//      ###########      S: 1.0.1-rc.8
9// =============================================================================
10
11//! Sync contracts for roles, peer metadata, transport, election, and replication.
12
13#![deny(missing_docs)]
14
15pub mod sync;
16
17pub use appcore_distributed_contracts::{
18    OpaqueContentEnvelopeV1, OpaqueEnvelopeDecision, OpaqueEnvelopeDeduplicator,
19    OpaqueEnvelopePolicy, OPAQUE_CONTENT_ENVELOPE_SCHEMA_V1,
20};
21pub use sync::{
22    compute_events_hash, decode_sync_envelope, decode_sync_message, discover_dns_sync_peers,
23    encode_sync_envelope_v1, FileReplicationLog, FileSyncCheckpointStore, FileSyncOutbox,
24    FollowerSyncClient, HeartbeatMessage, HttpSyncTransport, InMemoryReplicationLog,
25    InMemorySyncCheckpointStore, InMemorySyncOutbox, LeaderElection, NodeRole, PeerInfo,
26    ReplicationLog, ReplicationSnapshot, ReplicationSnapshotRecord, SyncCheckpointStore,
27    SyncEnvelopeV1, SyncError, SyncMessage, SyncOutbox, SyncOutboxReceipt, SyncOutboxStats,
28    SyncPeerAddress, SyncPeerScheme, SyncPushMetrics, SyncReceiveAck, SyncReceiverState,
29    SyncResult, SyncRetryPolicy, SyncStatus, SyncTransport, MAX_OUTBOX_PAGE_BYTES,
30    MAX_OUTBOX_PAGE_MESSAGES, REPLICATION_LOG_FORMAT_V1, SYNC_CHECKPOINT_FORMAT_V1,
31    SYNC_OUTBOX_FORMAT_V2, SYNC_WIRE_SCHEMA_V1,
32};