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, MAX_OPAQUE_MESSAGE_ID_BYTES, 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, encoded_sync_message_bytes, write_sync_message_json,
24    FileReplicationLog, FileSyncCheckpointStore, FileSyncOutbox, FollowerSyncClient,
25    HeartbeatMessage, HttpSyncTransport, InMemoryReplicationLog, InMemorySyncCheckpointStore,
26    InMemorySyncOutbox, LeaderElection, NodeRole, PeerInfo, ReplicationLog, ReplicationSnapshot,
27    ReplicationSnapshotRecord, SyncCheckpointStore, SyncEnvelopeV1, SyncError, SyncMessage,
28    SyncOutbox, SyncOutboxReceipt, SyncOutboxStats, SyncPeerAddress, SyncPeerScheme,
29    SyncPushMetrics, SyncReceiveAck, SyncReceiverState, SyncResult, SyncRetryPolicy, SyncStatus,
30    SyncTransport, MAX_CHECKPOINT_FILE_BYTES, MAX_CHECKPOINT_PEER_ID_BYTES, MAX_CHECKPOINT_RECORDS,
31    MAX_OUTBOX_PAGE_BYTES, MAX_OUTBOX_PAGE_MESSAGES, MAX_REPLICATION_PAGE_BYTES,
32    MAX_REPLICATION_PAGE_RECORDS, MAX_SYNC_BATCH_PAYLOAD_BYTES, MAX_SYNC_REQUEST_BODY_BYTES,
33    REPLICATION_LOG_FORMAT_V1, SYNC_CHECKPOINT_FORMAT_V1, SYNC_OUTBOX_FORMAT_V2,
34    SYNC_WIRE_SCHEMA_V1,
35};