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§
- Cache
Info - Result of scanning an entire cache directory.
- Cached
File - A readable file in one cached revision.
- Cached
Repo - One repository discovered in the cache.
- Cached
Revision - One cached repository revision.
- Repo
Scan - Result of scanning one requested repository.
- Scan
Warning - A non-fatal problem encountered while scanning below a readable cache root.
Enums§
- Error
- A fatal cache scanning error.
- Repo
Type - 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.