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;
17#[cfg(feature = "transcripts")]
18pub mod recovery_marker;
19mod schedule;
20mod storage;
21mod traits;
22#[cfg(feature = "transcript-host")]
23pub mod transcript_host;
24#[cfg(feature = "transcripts")]
25pub mod transcripts;
26#[cfg(feature = "vault")]
27pub mod vault;
28pub mod wire;
29
30pub use backoff::BackoffPolicy;
31pub use engine::{
32    ConsentChoice, PassOutcome, PassReport, SyncConfig, SyncEngine, SyncEngineBuilder, SyncMetrics,
33    SyncStatus,
34};
35pub use error::{SyncError, SyncResult};
36pub use ledger::{ConsentRequest, Ledger, LedgerStore, RemoteVersion};
37pub use record::{field, read_tombstone, write_tombstone, FieldValue, RawRecord};
38pub use schedule::{
39    next_delay, should_continue, sync_once, work_outcome, SchedulePolicy, SyncBudget, SyncReport,
40    WorkOutcome,
41};
42pub use storage::{FileStorage, LedgerStorage};
43pub use traits::*;