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. - Resolved
Document - 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§
- Package
Resolver - Supplies the bytes for an import uri. Implement over any store (fs, http,
embedded);
DirResolvercovers the standard directory layout.
Functions§
- resolve_
imports - Resolve a document’s imports and build the visible symbol tables.