Skip to main content

load_any

Function load_any 

Source
pub fn load_any(locator: &str) -> Result<Registry, String>
Expand description

Fetch a registry from anywhere it might live. v0.7 (this phase):

  • bare path / file:// — local file (delegates to load_local)
  • https://…/entries.json — fetched via blocking HTTP, parsed identically to a local file
  • https://hub.example / https://hub.example/ — appends /entries automatically

HTTP fetch returns the same Registry shape; the hub serves the canonical-JSON manifest verbatim, so signature verification works byte-for-byte without re-canonicalization.