nms_cache/lib.rs
1//! Zero-copy serialization cache for NMS Copilot.
2//!
3//! Serializes the in-memory `GalaxyModel` discovery data to an rkyv archive
4//! for near-instant startup on subsequent runs. Indices are rebuilt on load.
5
6pub mod data;
7pub mod error;
8pub mod freshness;
9pub mod serialize;
10
11pub use data::CacheData;
12pub use error::CacheError;
13pub use freshness::{is_cache_fresh, load_or_rebuild};
14pub use serialize::{extract_cache_data, read_cache, rebuild_model, write_cache};