Expand description
All of a Capsule client’s local state, over the stateless capsule-core.
This crate owns what capsule-core may not: the SQLite index (db), the on-disk library
and its lock (library), the Workspace and its persistence
(lifecycle), import scanning and execution (import), sidecar and album-store file I/O,
backup file I/O, file-path EXIF reading (exif), the desktop TPM signers (signers), the
record that rebinds a hardware-held device signing key on reopen (account) and
the system clock and random source core’s identifiers are minted from (ambient).
Every cryptographic, codec and planning decision stays in capsule-core; the code here reads
and writes the bytes those decisions are made over. See [capsule_core] for the stateless
core’s rule.
Modules§
- account
- The library’s record of a hardware-bound device signing key: the half of the account the
library, not
capsule-core, keeps on disk. - album_
store - Persistence of the sealed album-key store at
{root}/.library/albums.cbor. - ambient
- The system implementations of
capsule-core’s injected [Clock] and [Rng]. - db
- exif
- File-path EXIF reading over
capsule-core’s reader-generic extractor. - file_
metadata - import
- Import: scanning a source, planning against the library index, and executing the plan
(staged or streaming). The pure half — grouping, scope, default-album resolution and the
upload policy — is
capsule_core::import, re-exported here so callers name one path. - library
- lifecycle
- The offline asset lifecycle — the integration layer that ties the cryptographic data plane to the on-disk client library, and the substrate the CLI showcase drives.
- sidecar_
io - signers
- Desktop TPM 2.0
HardwareSignerimplementations. They hold an open TPM context and persistent key handles, which is device state, so they live here rather than in the stateless core that defines the trait. - utils