Skip to main content

Module library

Module library 

Source
Expand description

The library and registry contracts: loading behavior against the kernel.

The kernel defines the Lib, Linker, Registry, ExportRecord, and loader contracts plus manifest and version metadata; the libraries supply the behavior these registries make available.

Structs§

AbiVersion
The ABI version a library targets, as a major/minor pair.
Dependency
A dependency on another library, optionally pinned to a minimum version.
ExportKind
An open, symbol-keyed export kind tag.
ExportRecord
One resolved export row: its kind, symbol, and resolution state.
LibBootDependency
A loaded dependency edge recorded in a boot receipt.
LibBootReceipt
The data-only receipt for one loaded library.
LibManifest
The self-description a library presents at load time.
Linker
The handle a Lib uses to register its exports.
LoadCx
The context a Lib sees while loading.
LoadTransaction
An in-progress library load against a private copy of the Registry.
LoadedLib
A library that has been loaded and committed into the Registry.
LoaderRegistry
A registry of LibLoaders plus catalog-resolvable library sources.
RegisteredTest
A registered test with its owning library and the subjects it covers.
Registry
The kernel’s library registry: the authoritative store of loaded libraries and their resolved exports.
RegistryBootState
A data-only boot state for replaying a loaded registry surface.
TestReport
The outcome of running a library-supplied Test.
Version
A library version string, compared component-wise by dotted numeric components, ignoring trailing zero components.

Enums§

CatalogSource
A catalog-registered source for a library symbol.
Export
A single export declared by a library manifest, by export kind.
ExportState
The resolution state of an export within a loaded library.
LibSource
Where a library is loaded from.
LibSourceSpec
A data-only library source suitable for boot receipts.
LibTarget
The kind of artifact a library is loaded from.

Traits§

Lib
The contract every loadable library implements.
LibLoader
A loader that can turn a LibSource into a Lib.
Test
A library-supplied test the registry can hold and run.