capsule_library/lib.rs
1//! All of a Capsule client's local state, over the stateless `capsule-core`.
2//!
3//! This crate owns what `capsule-core` may not: the SQLite index ([`db`]), the on-disk library
4//! and its lock ([`library`]), the [`Workspace`](lifecycle::Workspace) and its persistence
5//! ([`lifecycle`]), import scanning and execution ([`import`]), sidecar and album-store file I/O,
6//! backup file I/O, file-path EXIF reading ([`exif`]), the desktop TPM signers ([`signers`]), the
7//! record that rebinds a hardware-held device signing key on reopen ([`account`]) and
8//! the system clock and random source core's identifiers are minted from ([`ambient`]).
9//! Every cryptographic, codec and planning decision stays in `capsule-core`; the code here reads
10//! and writes the bytes those decisions are made over. See [`capsule_core`] for the stateless
11//! core's rule.
12
13pub mod account;
14pub mod album_store;
15pub mod ambient;
16pub mod db;
17pub mod exif;
18pub mod file_metadata;
19pub mod import;
20pub mod library;
21pub mod lifecycle;
22pub mod sidecar_io;
23pub mod signers;
24pub mod utils;
25
26#[cfg(test)]
27mod test_heap;