Skip to main content

rightkit_sync/
lib.rs

1//! Brand-neutral cloud sync engine. See `API.md` for the adapter traits and
2//! the record/conflict contract shared with the iOS CloudKit implementation.
3
4mod backoff;
5#[cfg(feature = "cipher")]
6pub mod cipher;
7#[cfg(feature = "drive")]
8pub mod drive;
9mod engine;
10mod error;
11#[cfg(feature = "helper")]
12pub mod helper;
13#[cfg(feature = "http")]
14pub mod http;
15mod ledger;
16mod memory;
17mod record;
18mod schedule;
19mod storage;
20mod traits;
21pub mod wire;
22
23pub use backoff::BackoffPolicy;
24pub use engine::{
25    ConsentChoice, PassOutcome, PassReport, SyncConfig, SyncEngine, SyncEngineBuilder, SyncMetrics,
26    SyncStatus,
27};
28pub use error::{SyncError, SyncResult};
29pub use ledger::{ConsentRequest, Ledger, LedgerStore, RemoteVersion};
30pub use memory::MemoryBackend;
31pub use record::{field, read_tombstone, write_tombstone, FieldValue, RawRecord};
32pub use schedule::{
33    next_delay, should_continue, sync_once, work_outcome, SchedulePolicy, SyncBudget, SyncReport,
34    WorkOutcome,
35};
36pub use storage::{FileStorage, LedgerStorage, MemoryStorage};
37pub use traits::*;