#![forbid(unsafe_code)]
pub mod hlc;
pub mod identity;
pub mod jobs;
pub mod lease;
pub mod log;
pub mod merge;
pub mod net;
pub mod plan;
pub mod protocol;
pub mod record;
pub mod roster;
pub mod rotation;
pub mod seal;
mod bytes;
mod error;
pub use error::{Result, SyncError};
pub use hlc::{Hlc, NodeId};
pub use identity::{FileSecrets, Identity, LinkSettings, SecretStore, Tick};
pub use jobs::{JobEvent, JobRules, JobSpec, JobStatus, JobView, Jobs, MAX_JOB_CLAIM, job_lease};
pub use lease::{
Elector, FenceGuard, LeaseConfig, LeaseError, LeaseHandle, LeaseLimits, LeaseName, LeaseRecord, LeaseState, Leases, Stale, Term, Voter, Voters,
};
pub use log::{LogEntry, OpLog, Page as LogPage};
pub use merge::{CONFLICT_KEEP_MS, Lww, OrSet, TOMBSTONE_GC_MS, can_gc_tombstone, edit_vs_delete, folder_cycle, lww};
pub use net::{
LinkBundle, MergeOutcome, PullOutcome, SyncHandler, SyncState, node_config, pull_chunks, pull_from, pull_from_outcome, pull_from_shared,
start_node,
};
pub use plan::Plan;
pub use protocol::{
Ack, Cursors, Envelope, Hello, HelloOk, KeyRef, Message, PAGE_BUDGET, PAGE_MAX, PROTOCOL, Page, Pull, Refuse, RefuseReason, RosterMsg,
SYNC_PROFILE, decode, decode_framed, encode, encode_framed,
};
pub use record::{Blob, Limits, RecordOptions, RecordRef, RecordValue, SealInfo, Value, chunk_type};
pub use roster::{CallerCheck, DeviceClass, DeviceGrant, MAX_GRANT_ROLES, MAX_GRANT_TYPES, Roster, SessionCheck, SessionOffer};
pub use rotation::{Admission, ChainView, Device, DeviceKey, EpochKeys, KeyChain, KeyStatus, Rotation, SealedKey, ValidRotation};
pub use seal::{SyncKey, SyncType, open_page, page_aad, page_aad_keyed, rotated_sync_key, seal_page, sync_key, sync_key_info};