Skip to main content

Crate hf_cache_reader

Crate hf_cache_reader 

Source
Expand description

Read the standard Hugging Face cache layout without network access.

This crate performs synchronous, read-only filesystem inspection and has no runtime dependencies. It deliberately contains no HTTP client and no model format or download policy.

Structs§

CacheInfo
Result of scanning an entire cache directory.
CachedFile
A readable file in one cached revision.
CachedRepo
One repository discovered in the cache.
CachedRevision
One cached repository revision.
RepoScan
Result of scanning one requested repository.
ScanWarning
A non-fatal problem encountered while scanning below a readable cache root.

Enums§

Error
A fatal cache scanning error.
RepoType
A repository kind supported by the Hugging Face cache layout.

Functions§

resolve_cache_dir
Resolve the conventional Hugging Face Hub cache directory.
scan_cache
Scan all supported repositories below a cache directory.
scan_default_cache
Scan the conventional Hugging Face Hub cache directory.
scan_repo
Scan one repository below a cache directory.