fallow_extract/cache/mod.rs
1//! Incremental parse cache with bitcode serialization.
2//!
3//! Stores parsed module information (exports, imports, re-exports) on disk so
4//! unchanged files can skip AST parsing on subsequent runs. Uses xxh3 content
5//! hashing to detect changes.
6
7mod conversion;
8mod store;
9mod types;
10
11#[cfg(test)]
12mod tests;
13
14pub use conversion::{
15 cached_to_module, cached_to_module_opts, current_unix_seconds, module_to_cached,
16};
17pub use store::CacheStore;
18pub use types::{
19 CachedDynamicImport, CachedDynamicImportPattern, CachedExport, CachedImport, CachedMember,
20 CachedModule, CachedReExport, CachedRequireCall, CachedSuppression, DEFAULT_CACHE_MAX_SIZE,
21 DUPES_CACHE_VERSION,
22};