refactor(download): split the OCI registry client into registry.rs

download.rs carried two clients in one file: the plain transfer
plumbing and a full OCI Distribution Spec client (token auth,
manifest lists, layer blobs). The registry half moves to its own
module; download.rs keeps hashing, checksum files and file
transfers. fetch_oci_digest moves with it; rootfs imports it from
the new home. No behavior change.
This commit is contained in:
vhaudiquet committed 2026-10-29 22:50:49 +01:00
1 parent bb61be4625
commit aa95d05f41
6 files changed
+648 -633

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ Rules:
- `distro` - distro definitions and mirrors (`crates/ecrou/src/distro.rs`)
- `download` - image download (`crates/ecrou/src/download.rs`)
- `extract` - rootfs extraction (`crates/ecrou/src/extract.rs`)
- `config` - config file (`crates/ecrou/src/config.rs`)
- `registry` - OCI registry client (`crates/ecrou/src/registry.rs`)
- `utils`, `error`, `progress` - shared helpers
- `deps` - dependency additions/bumps (manifests, lockfile)
- Omit the scope entirely for repo-wide changes that do not belong to a