Structs§
- Local
Registry Source - A
Sourcebacked by a directory tree laid out like a registry:<root>/<namespace>/<name>/<version>.webc, or<root>/<name>/<version>.webcfor un-namespaced packages.
Functions§
- id_
from_ 🔒path - The package id encoded by a webc’s location under
root(<namespace>/<name>/<version>.webcor<name>/<version>.webc), if it fits the layout. Used where a walk finds a file and its id must be derived backwards; named lookups go the other way viapackage_dir_path. - load_
summary 🔒 - Open one matched webc and build its summary. The layout’s id (when given)
wins over the manifest’s; a
<stem>.sha256sibling, if present, must match the content. - package_
dir_ 🔒path - Where the layout would keep a package’s published versions: the full
name’s components (namespace, then name) become path components under
root. Only builds the path — existence is the caller’s question.Nonefor names the layout can’t hold (empty or path-like components), rather than letting them escape the root. - published_
versions 🔒 - The versions published for one package: its directory’s
<version>.webcfiles, read from the names alone. No webc is opened. - read_
sha256_ 🔒sibling - The trimmed digest of an optional
<stem>.sha256sibling, if present. - verify_
sha256 🔒 - Error if
actualdoesn’t matchexpected(hex, an optionalsha256:prefix allowed).