Implement codec-corpus crate per SPEC.md#1
Merged
Conversation
Runtime lazy-loading API for downloading and caching test image datasets. Shell git sparse checkout as primary method, tar_light fallback, curl/wget/powershell HTTP fallback. Per-major-version cache subfolders, atomic downloads with fd-lock, crate version matches GitHub release tags.
Runtime API for downloading, caching, and accessing test image datasets from imazen/codec-corpus GitHub releases. No data ships with the crate; datasets are fetched lazily on first access via git sparse checkout or HTTP tarball fallback (curl/wget/powershell), then cached locally. - #![forbid(unsafe_code)], edition 2024, MSRV 1.85 - Shell out to system tar instead of tar_light dependency - Parameterized PowerShell invocation (no command injection) - Warn on git tag fallback to default branch - fd-lock for concurrent download safety - CI: linux/macos/windows x64 + arm64 (18 jobs) - Unit tests + network integration tests
lilith
force-pushed
the
implement-codec-corpus-crate
branch
from
February 14, 2026 13:49
a072147 to
e4a0850
Compare
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the full
codec-corpusRust crate incrate/as specified in SPEC.md.Files added
dirs,tar_light,fd-lockCorpusstruct,DatasetInfo,Errortypes, cache management with version checking and file-based lockingKey features
fd-lockfor concurrent access safety across parallel test processes.tmp-*cleanup for crash recoverydirs::cache_dir()andCODEC_CORPUS_CACHEenv var