weirdnet-sync 0.8.5

Weirdnet sync: hybrid logical clocks, an op log, LWW and OR-set merge, tombstone GC, SyncKey page sealing, a device roster with self-cert, revocation, key rotation with re-admission, user-signed device grants and service devices linked without the seed, majority-vote leases with fencing terms, signed plans and a job log, and the /weirdnet/sync/2 pull protocol over weirdnet-net.
Documentation
//! Linked-device sync: clocks, an op log, merge primitives, sealed pages, a roster and
//! the `weirdnet-sync/v1` protocol over [`weirdnet-net`](weirdnet_net).
//!
//! Record types (bookmarks, notes, and so on) stay in the application. Persistence stays
//! in the application too; [`OpLog`] is the in-memory log the app can snapshot.
#![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, LEASE_TYPE, 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, PullTypesOutcome, SyncHandler, SyncState, node_config, pull_chunks, pull_from, pull_from_outcome,
    pull_from_shared, pull_types, pull_types_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, open_record_scoped, scoped_record_aad, scoped_record_key,
    seal_record_scoped,
};
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};