1#![forbid(unsafe_code)]
7
8pub mod hlc;
9pub mod log;
10pub mod merge;
11pub mod net;
12pub mod protocol;
13pub mod roster;
14pub mod rotation;
15pub mod seal;
16
17mod bytes;
18mod error;
19
20pub use error::{Result, SyncError};
21pub use hlc::{Hlc, NodeId};
22pub use log::{LogEntry, OpLog, Page as LogPage};
23pub use merge::{CONFLICT_KEEP_MS, Lww, OrSet, TOMBSTONE_GC_MS, can_gc_tombstone, edit_vs_delete, folder_cycle, lww};
24pub use net::{SyncHandler, SyncState, node_config, pull_from, start_node};
25pub use protocol::{
26 Ack, Cursors, Envelope, Hello, HelloOk, KeyRef, Message, PAGE_MAX, PROTOCOL, Page, Pull, Refuse, RefuseReason, RosterMsg, SYNC_PROFILE, decode,
27 decode_framed, encode, encode_framed,
28};
29pub use roster::{Roster, SessionCheck, SessionOffer};
30pub use rotation::{Admission, ChainView, Device, DeviceKey, EpochKeys, KeyChain, KeyStatus, Rotation, SealedKey, ValidRotation};
31pub use seal::{SyncKey, SyncType, open_page, page_aad, page_aad_keyed, rotated_sync_key, seal_page, sync_key, sync_key_info};