Expand description
File-oriented cache keys and persistent package caches for Shuck.
The types in this crate power the shuck CLI cache, but are generic enough to reuse in other
Rust tooling that wants SHA-256-based cache partitioning and serialized per-file entries.
Structs§
- Cache
KeyHasher - Incremental hasher used to build structured cache keys.
- File
Cache Key - File metadata used to validate cached entries against a filesystem path.
- Package
Cache - On-disk cache for file-scoped analysis results within a package.
Constants§
- CACHE_
DIR_ NAME - Legacy per-project cache directory name used by older shuck releases.
Traits§
- Cache
Key - Trait for values that can contribute to a deterministic package cache key.
Functions§
- cache_
key_ hex - Returns the hex-encoded cache key for a value.
- legacy_
cache_ dir - Returns the legacy cache directory that lives under a project root.
- read_
project_ root_ from_ cache_ file - Reads the cached project root marker stored in a legacy cache file.