Skip to main content

Module resolve

Module resolve 

Source
Expand description

Import resolution (spec §19). Import URIs follow the package form moddef:<namespace>:<name>:<version> (e.g. moddef:stdlib:measurands:1.0.0), resolved against package roots as <root>/<name>/<version>/<name>.moddef.{yaml,json,binary} — the layout of moddef/stdlib and the Go resolver’s MODDEF_PACKAGE_ROOTS.

Structs§

DirResolver
Resolver over MODDEF_PACKAGE_ROOTS-style directories.
ResolvedDocument
A document’s visible symbol tables after import resolution: local symbols first, then imported ones (alias-prefixed as <alias>:<id>, never overriding an existing entry).

Traits§

PackageResolver
Supplies the bytes for an import uri. Implement over any store (fs, http, embedded); DirResolver covers the standard directory layout.

Functions§

resolve_imports
Resolve a document’s imports and build the visible symbol tables.