Skip to main content

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(all(test, not(miri)))]
12mod tests;
13
14#[cfg(test)]
15pub use conversion::module_to_cached_from_parts;
16pub use conversion::{
17    cached_to_module, cached_to_module_opts, current_unix_seconds, module_to_cached,
18};
19pub use store::CacheStore;
20pub use types::{
21    CachedDynamicImport, CachedDynamicImportPattern, CachedExport, CachedImport, CachedMember,
22    CachedModule, CachedReExport, CachedRequireCall, CachedSuppression, DEFAULT_CACHE_MAX_SIZE,
23    DUPES_CACHE_VERSION,
24};