refactor(image): isolate format package boundaries - #61
Merged
Conversation
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.
Summary
rawshift-image-*leaf cratesrawshift-image-corecapability/error/image contracts plus focused metadata, IFD, and lossless-JPEG support cratesrawshift-imageandrawshiftAPIs and feature facade while keeping processing, transforms, camera data, and APV centralgamut-webpmigration frommasterinto the extracted, safe-Rustrawshift-image-webpleafDesign
Format leaves depend on shared contracts instead of the aggregate crate, so the dependency graph remains acyclic. The aggregate crate uses
default-features = falseleaf dependencies and forwards its existing direction features. Direct leaf dependencies default to decode support. Gamut remains the upstream implementation wherever available; no gamut workaround was added.Validation
cargo fmt --all -- --checkjust clippyjust testjust test-allcargo test -p rawshift-image-webp --no-default-features --features decode,encode,serderawshift-imageandrawshiftchecksRisks and rollout
This is a breaking v1 package/API refactor; 0.x source compatibility is explicitly a non-goal for the release. The merge preserves the WebP API and behavior now present on
masterwhile relocating its implementation behind the new leaf boundary.Issue
Closes #14