Skip to main content

Module client

Module client 

Source
Expand description

Registry client.

The Client resolves plugin metadata from the static-site catalog. Network access is abstracted behind the Fetcher trait so:

  • production builds can plug in reqwest/ureq (or read from a mirrored checkout), and
  • tests inject a MemoryFetcher holding the TOML documents verbatim, with no network.

The client only reads structured TOML; the actual artifact download (the [artifact] URL in a manifest) is handled by [crate::install].

Structs§

Client
A client bound to a registry base URL and a Fetcher.
MemoryFetcher
An in-memory Fetcher keyed by registry-relative path.

Traits§

Fetcher
Pluggable transport for registry content.