chronix_engine/lib.rs
1//! # Chronix Engine
2//!
3//! The storage engine of Chronix — everything between an accepted write and
4//! a pruned, decoded read:
5//!
6//! - [`wal`] — write-ahead log: CRC32c-protected records, group commit,
7//! configurable fsync policies, rotation, truncation, crash recovery.
8//! - [`memtable`] — lock-free skip-list write buffer with freeze-and-swap
9//! flush lifecycle and time-shard routing.
10//! - [`segment`] — immutable columnar `.csx` segment files: row groups,
11//! per-column encoding and stats, LZ4/Zstd compression, mmap read path,
12//! optional AES-256-GCM field encryption (feature `field-encryption`).
13//! - [`storage`] — pluggable storage backend trait with an atomic
14//! local-filesystem implementation and transparent encryption wrapper.
15//! - [`index`] — pruning structures: time index, series bloom filters,
16//! inverted tag index, skip index, zone maps, and the segment catalog with
17//! its manifest WAL + snapshots.
18//! - [`compaction`] — hybrid TWCS + size-tiered compaction with streaming
19//! K-way merge, tombstone cleanup, and write-amplification budgeting.
20//! - [`cache`] — last-value cache, TinyLFU segment cache, metadata cache.
21//! - `objstore` *(feature `object-store`)* — S3/GCS/Azure object storage
22//! backend with local disk caching for cold-data tiering.
23
24pub mod cache;
25pub mod compaction;
26pub mod index;
27pub mod memtable;
28#[cfg(feature = "object-store")]
29pub mod objstore;
30pub mod segment;
31pub mod storage;
32pub mod wal;