Skip to main content

pacenotes_installer/
cache.rs

1//! The package cache inside the game folder: payloads named `<sha256>.zip`,
2//! which gives integrity, dedupe and an old version still reachable after the
3//! index has moved on, plus a `cache.json` index keyed by `game/directory/name`.
4//! The root is injected, so it is testable anywhere.
5
6mod index;
7mod location;
8mod payloads;
9
10pub use index::{Cache, IndexState};
11pub use location::dir_for;
12pub use payloads::Swept;
13
14const INDEX_FILE: &str = "cache.json";
15
16#[cfg(test)]
17mod tests;