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 record;
17mod schedule;
18mod storage;
19mod traits;
20#[cfg(feature = "vault")]
21pub mod vault;
22pub mod wire;
23
24pub use backoff::BackoffPolicy;
25pub use engine::{
26    ConsentChoice, PassOutcome, PassReport, SyncConfig, SyncEngine, SyncEngineBuilder, SyncMetrics,
27    SyncStatus,
28};
29pub use error::{SyncError, SyncResult};
30pub use ledger::{ConsentRequest, Ledger, LedgerStore, RemoteVersion};
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};
37pub use traits::*;