1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! snapdir stores library.
//!
//! Storage backends for snapdir snapshots plus the store-routing and
//! external-store shim that implement snapdir's store dispatch:
//!
//! - [`FileStore`] — the in-process `file://` backend.
//! - [`S3Store`] — the native AWS-SDK `s3://` backend (ring rustls).
//! - [`B2Store`] — the native AWS-SDK `b2://` backend, pointed at Backblaze
//! B2's S3-compatible endpoint (wraps [`S3Store`] with a custom endpoint).
//! - [`GcsStore`] — the native `google-cloud-storage` `gs://` backend
//! (ring rustls; ADC credential chain).
//! - [`router`] — scheme → adapter resolution, including the hardcoded
//! `gs://`→`gcs` special case for the Google Cloud Storage adapter.
//! - [`shim`] ([`ExternalStore`]) — the emit-command shim that dispatches
//! third-party `snapdir-<name>-store` binaries via the documented
//! `get-manifest-command` / `get-fetch-files-command` / `get-push-command`
//! contract.
//! - [`transfer`] ([`TransferConfig`], [`RateLimiter`], [`run_concurrent`]) —
//! the concurrency + bandwidth-limiting foundation each store carries via a
//! [`TransferConfig`] for the (later) concurrent transfer loops.
//! - [`stream`] ([`StreamStore`]) — object/manifest-level, content-addressed,
//! verified read/write primitives (the foundation for store-to-store sync),
//! implemented for [`FileStore`], [`S3Store`], [`GcsStore`], and [`B2Store`].
//! - [`sync`] ([`sync_snapshot`], [`SyncReport`]) — streaming store-to-store
//! snapshot copy: walks a source manifest and copies its raw objects
//! source → dest through memory only (no local filesystem staging),
//! parallelized across a rayon pool and throttled by a
//! [`BlockingRateLimiter`](transfer::BlockingRateLimiter); writes the manifest
//! last (all-or-nothing).
pub
pub
pub
pub use B2Store;
pub use FileStore;
pub use ;
pub use ;
pub use ;
pub use ExternalStore;
pub use StreamStore;
pub use ;
pub use ;