summaryrefslogtreecommitdiffstats
path: root/third_party/rust/sync15/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/sync15/src/lib.rs
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/sync15/src/lib.rs')
-rw-r--r--third_party/rust/sync15/src/lib.rs45
1 files changed, 45 insertions, 0 deletions
diff --git a/third_party/rust/sync15/src/lib.rs b/third_party/rust/sync15/src/lib.rs
new file mode 100644
index 0000000000..4420a72f0d
--- /dev/null
+++ b/third_party/rust/sync15/src/lib.rs
@@ -0,0 +1,45 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#![allow(unknown_lints, clippy::implicit_hasher)]
+#![warn(rust_2018_idioms)]
+
+mod bso_record;
+pub mod changeset;
+mod client;
+pub mod clients;
+mod coll_state;
+mod collection_keys;
+mod error;
+mod key_bundle;
+mod migrate_state;
+mod record_types;
+mod request;
+mod state;
+mod status;
+mod sync;
+mod sync_multiple;
+pub mod telemetry;
+mod token;
+mod util;
+
+// Re-export some of the types callers are likely to want for convenience.
+pub use crate::bso_record::{BsoRecord, CleartextBso, EncryptedBso, EncryptedPayload, Payload};
+pub use crate::changeset::{IncomingChangeset, OutgoingChangeset, RecordChangeset};
+pub use crate::client::{
+ SetupStorageClient, Sync15ClientResponse, Sync15StorageClient, Sync15StorageClientInit,
+};
+pub use crate::coll_state::{CollState, CollSyncIds, StoreSyncAssociation};
+pub use crate::collection_keys::CollectionKeys;
+pub use crate::error::{Error, ErrorKind, Result};
+pub use crate::key_bundle::KeyBundle;
+pub use crate::migrate_state::extract_v1_state;
+pub use crate::request::CollectionRequest;
+pub use crate::state::{GlobalState, SetupStateMachine};
+pub use crate::status::{ServiceStatus, SyncResult};
+pub use crate::sync::{synchronize, Store};
+pub use crate::sync_multiple::{
+ sync_multiple, sync_multiple_with_command_processor, MemoryCachedState, SyncRequestInfo,
+};
+pub use crate::util::ServerTimestamp;