Expand description
Fetch + cache + sha256-verify for declared deps.
Cache flow per dep:
- If
cache_pathexists and its sha256 matchesexpected_sha256→ cache hit; return (zero HTTP). - If
cache_pathexists with a wrong sha → drop it and fall through. - If
offlineis true → returnFetchError::OfflineMissing. - Otherwise: HTTPS GET → write to
<file>.tmp→ sha-verify → atomic rename tocache_path.
Structs§
- Fetch
Plan - Resolved per-dep fetch parameters: where to download from, where to cache the bytes, and what sha256 to verify against.
Enums§
Functions§
- fetch
- Ensure
plan.cache_pathexists and matchesplan.expected_sha256.