aft_store/lib.rs
1//! On-disk formats for AFT's indexes.
2//!
3//! Everything AFT stores about a repository's files lives in immutable
4//! segment files: units keyed by file content, sorted lookup tables, and
5//! posting lists. Readers fetch segment bytes with positioned reads through
6//! one byte-budgeted [`BlockCache`] shared by every open segment, so memory
7//! stays bounded and counted however many checkouts read the same data.
8//!
9//! This crate knows nothing about AFT's tools, sessions or configuration. It
10//! defines the formats and the code that writes, verifies and reads them.
11
12pub mod cache;
13pub mod checkout;
14pub mod content;
15pub mod family;
16pub mod graph;
17pub mod heap;
18pub mod ids;
19pub mod postings;
20pub mod scan;
21pub mod segment;
22pub mod spill;
23pub mod stat;
24pub mod sync;
25pub mod table;
26pub mod text;
27pub mod vector;
28
29mod fault;
30mod fold;
31mod fs;
32mod le;
33mod packed;
34#[cfg(test)]
35mod test_rng;
36
37pub use cache::{BlockCache, CacheStats};
38pub use family::{Family, FamilyError, Snapshot, WriteSession};
39pub use ids::{
40 CheckoutId, ContentKey, Digest128, FamilyId, Generation, SegmentId, WriterIncarnation,
41};