Skip to main content

Crate shuck_cache

Crate shuck_cache 

Source
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§

CacheKeyHasher
Incremental hasher used to build structured cache keys.
FileCacheKey
File metadata used to validate cached entries against a filesystem path.
PackageCache
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§

CacheKey
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.