1#![forbid(unsafe_code)]
7
8pub mod hlc;
9pub mod identity;
10pub mod jobs;
11pub mod lease;
12pub mod log;
13pub mod merge;
14pub mod net;
15pub mod plan;
16pub mod protocol;
17pub mod record;
18pub mod roster;
19pub mod rotation;
20pub mod seal;
21
22mod bytes;
23mod error;
24
25pub use error::{Result, SyncError};
26pub use hlc::{Hlc, NodeId};
27pub use identity::{FileSecrets, Identity, LinkSettings, SecretStore, Tick};
28pub use jobs::{JobEvent, JobSpec, JobStatus, JobView, Jobs, job_lease};
29pub use lease::{Elector, FenceGuard, LeaseConfig, LeaseError, LeaseHandle, LeaseName, LeaseRecord, LeaseState, Leases, Stale, Term, Voter, Voters};
30pub use log::{LogEntry, OpLog, Page as LogPage};
31pub use merge::{CONFLICT_KEEP_MS, Lww, OrSet, TOMBSTONE_GC_MS, can_gc_tombstone, edit_vs_delete, folder_cycle, lww};
32pub use net::{
33 LinkBundle, MergeOutcome, PullOutcome, SyncHandler, SyncState, node_config, pull_chunks, pull_from, pull_from_outcome, pull_from_shared,
34 start_node,
35};
36pub use plan::Plan;
37pub use protocol::{
38 Ack, Cursors, Envelope, Hello, HelloOk, KeyRef, Message, PAGE_BUDGET, PAGE_MAX, PROTOCOL, Page, Pull, Refuse, RefuseReason, RosterMsg,
39 SYNC_PROFILE, decode, decode_framed, encode, encode_framed,
40};
41pub use record::{Blob, Limits, RecordOptions, RecordRef, RecordValue, SealInfo, Value, chunk_type};
42pub use roster::{CallerCheck, DeviceClass, DeviceGrant, MAX_GRANT_ROLES, MAX_GRANT_TYPES, Roster, SessionCheck, SessionOffer};
43pub use rotation::{Admission, ChainView, Device, DeviceKey, EpochKeys, KeyChain, KeyStatus, Rotation, SealedKey, ValidRotation};
44pub use seal::{SyncKey, SyncType, open_page, page_aad, page_aad_keyed, rotated_sync_key, seal_page, sync_key, sync_key_info};