1#![allow(unknown_lints, clippy::implicit_hasher)]
6#![warn(rust_2018_idioms)]
7
8pub mod bso;
9#[cfg(feature = "sync-client")]
10pub mod client;
11mod device_type;
13mod client_types;
15#[cfg(feature = "sync-client")]
18pub mod clients_engine;
19#[cfg(feature = "crypto")]
20mod enc_payload;
21#[cfg(feature = "sync-engine")]
22pub mod engine;
23mod error;
24#[cfg(feature = "crypto")]
25mod key_bundle;
26#[cfg(feature = "sync-client")]
27mod record_types;
28mod server_timestamp;
29pub mod telemetry;
30
31pub use crate::client_types::{ClientData, RemoteClient};
32pub use crate::device_type::DeviceType;
33pub use crate::error::{Error, Result};
34#[cfg(feature = "crypto")]
35pub use enc_payload::EncryptedPayload;
36#[cfg(feature = "crypto")]
37pub use key_bundle::KeyBundle;
38pub use server_timestamp::ServerTimestamp;
39pub use sync_guid::Guid;
40
41pub type CollectionName = std::borrow::Cow<'static, str>;
45
46fn skip_if_default<T: PartialEq + Default>(v: &T) -> bool {
48 *v == T::default()
49}
50
51uniffi::include_scaffolding!("sync15");