add manifest backend for static JSON release manifests#195
Merged
Conversation
- new `manifest` feature (no new deps) gating `backends::manifest`: `ManifestSource` implements `ReleaseSource` (and `AsyncReleaseSource` under `async`), fetching a `manifest.json` from any static file server and mapping it through the public `ReleaseBuilder`. (#74) - schema 1 is the only accepted version; any other `schema` value fails with `Error::InvalidResponse` naming the version. Unknown fields are ignored for forward compatibility. - relative asset urls resolve against the manifest URL's directory; absolute urls pass through. Non-semver `version` entries are skipped with a debug log (same as the forge backends). Asset `digest` values map to `ReleaseAsset::digest()` and plug into release-digest verification. - `manifest::Update::configure()` facade mirrors the other backends' builders, with sync and `AsyncUpdate` variants; transport setters apply to both the manifest fetch and the asset download. - new spec specs/ref-manifest-backend.md; example examples/manifest.rs; the `manifest` feature added to all Makefile CI lanes.
jaemk
force-pushed
the
260717.manifest-backend
branch
from
July 19, 2026 22:15
993085b to
c793ed2
Compare
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.
Closes #74.
manifestfeature (no new dependencies) gatingbackends::manifest: update from a staticmanifest.jsonserved by any plain file server (S3 static hosting, a CDN, GitHub Pages, nginx), with no forge-specific API.ManifestSourceimplementsReleaseSource(andAsyncReleaseSourceunderasync); themanifest::Update::configure()facade mirrors the other backends' builders, with sync andAsyncUpdatevariants.schemafails withError::InvalidResponsenaming the version. Unknown fields are ignored for forward compatibility.versionentries with a debug log, same as the forge backends.digestvalues (sha256:<hex>) toReleaseAsset::digest(); they plug into the existing release-digest verification (checksumsfeature).manifestfeature to all Makefile CI lanes.Usage:
See
specs/ref-manifest-backend.mdfor the manifest schema andexamples/manifest.rsfor a runnable example.