Skip to main content

Crate zoi_sync

Crate zoi_sync 

Source
Expand description

Registry and repository synchronization logic for Zoi.

This crate handles cloning and updating package registries, rebuilding the local SQLite metadata cache, and synchronizing external Git repositories.

Registry content can arrive either as a Git clone or as a zstd-compressed .zrepo snapshot. See the zrepo module for the snapshot transport and its incremental .zdelta updates.

Modules§

zrepo
Support for zstd-compressed registry databases (.zrepo).

Functions§

fetch_repo_config_over_http
Fetches and parses repo.yaml from an HTTP(S) URL.
is_repo_yaml_url
Returns true when url looks like it points directly at a repo.yaml document rather than at a Git repository.
resolve_registry_from_url
Resolves a registry’s full identity from a URL that points at a repo.yaml document.
run
The primary entry point for synchronizing Zoi registries and system state.
run_local
Performs a project-local sync of registries.