Expand description
Lib loaders for the supported source formats (host, Lisp source, binary pack, native dynamic library, and wasm) plus the standard loader registry.
Modules§
- native
- Native dynamic-library loader compatibility exports.
Structs§
- Binary
LibPack - Decoded contents of a binary lib pack: a manifest plus its re-export specs.
- Binary
Pack Loader - Loader for
.l8bbinary lib packs, recognized by path extension or magic. - Host
Loader - Loader for libs supplied directly as in-process host objects.
- Lisp
Source Loader - Loader that compiles
.lispsource files into libs using a Lisp codec. - Native
Dylib Loader - Loader for native dynamic libraries that expose the stable native lib ABI.
- Reexport
Spec - One re-export entry mapping an exported symbol to a target already present in the registry, tagged by the kind of item it links.
- Wasm
Loader - Loader for
.wasmcomponent libs, backed by a host wasm runtime.
Enums§
- Reexport
Kind - Kind of registry item a lib-pack or source-lib re-export links.
Functions§
- bytes_
from_ payload - Decodes in-memory artifact bytes from a loader-defined payload.
- bytes_
from_ source - Decodes an in-memory byte payload from a live source.
- bytes_
source - Builds a live kernel source for in-memory artifact bytes.
- bytes_
source_ kind - Returns the bytes source kind symbol.
- bytes_
source_ spec - Builds a boot-recordable kernel source spec for in-memory artifact bytes.
- catalog_
bytes_ source - Builds a catalog source for in-memory artifact bytes.
- catalog_
content_ address_ source - Builds a catalog source for content-addressed artifacts.
- catalog_
path_ source - Builds a catalog source for a local path.
- catalog_
url_ source - Builds a catalog source for a URL.
- compile_
lisp_ source_ pack - Compiles an already-decoded Lisp source expression into a binary lib pack.
- compile_
lisp_ source_ text_ to_ pack - Compiles Lisp source text into an in-memory binary lib pack.
- content_
address_ payload - Decodes the opaque content-address payload from a live source.
- content_
address_ source - Builds a live kernel source for a content-addressed artifact payload.
- content_
address_ source_ kind - Returns the content-addressed source kind symbol.
- content_
address_ source_ spec - Builds a boot-recordable kernel source spec for content-addressed artifacts.
- decode_
binary_ lib_ pack - Decodes a binary lib pack from its byte representation, validating the header.
- encode_
binary_ lib_ pack - Encodes a binary lib pack into its byte representation.
- encode_
lisp_ source_ text_ to_ binary_ pack - Compiles Lisp source text and encodes it as binary lib pack bytes.
- encode_
native_ manifest_ response - Encodes a lib manifest as the native ABI manifest-call response.
- export_
lisp_ source_ file_ to_ binary_ pack - Reads a Lisp source file, compiles it, and writes a binary lib pack to disk.
- is_
bytes_ source - Returns whether a live source has the bytes kind.
- is_
path_ source - Returns whether a live source has the local path kind.
- is_
url_ source - Returns whether a live source has the URL kind.
- path_
from_ payload - Decodes a local path from a loader-defined payload.
- path_
from_ source - Decodes a local path payload from a live source.
- path_
payload - Encodes a local path as a loader-defined payload.
- path_
source - Builds a live kernel source for a local path.
- path_
source_ kind - Returns the local path source kind symbol.
- path_
source_ spec - Builds a boot-recordable kernel source spec for a local path.
- standard_
loader_ registry - Builds a loader registry with the standard loaders for the enabled features.
- standard_
loader_ registry_ with_ sources - Builds the standard loader registry and seeds it with catalog sources.
- standard_
loader_ registry_ with_ wasm - Builds the standard loader registry and adds a wasm loader backed by
runtime. - standard_
loader_ registry_ with_ wasm_ and_ sources - Builds the standard loader registry with a wasm loader and catalog sources.
- url_
from_ payload - Decodes a URL from a loader-defined payload.
- url_
from_ source - Decodes a URL payload from a live source.
- url_
source - Builds a live kernel source for a URL.
- url_
source_ kind - Returns the URL source kind symbol.
- url_
source_ spec - Builds a boot-recordable kernel source spec for a URL.
- wasm_
load_ capability - Capability required to instantiate wasm component libs.