pub fn load_cached_manifest(
cache_dir: &Path,
id: &str,
) -> Result<Manifest, CacheError>Expand description
Loads a cached manifest by snapshot id from cache_dir.
Reads <cache_dir>/.manifests/<id…> (the sharded manifest path) and parses
it. This is the “manifest must be present locally” precondition of
check_snapshot_integrity, exposed on its own for callers that have only
an id and a cache directory.
§Errors
CacheError::ManifestNotFoundif no manifest is filed underid, matching the oracle’stest -f … || { echo "…did you forget to fetch…" }.CacheError::Parseif the cached bytes are not a valid manifest.CacheError::Ioon any other read failure.