Skip to main content

Module loaders

Module loaders 

Source
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§

BinaryLibPack
Decoded contents of a binary lib pack: a manifest plus its re-export specs.
BinaryPackLoader
Loader for .l8b binary lib packs, recognized by path extension or magic.
HostLoader
Loader for libs supplied directly as in-process host objects.
LispSourceLoader
Loader that compiles .lisp source files into libs using a Lisp codec.
NativeDylibLoader
Loader for native dynamic libraries that expose the stable native lib ABI.
ReexportSpec
One re-export entry mapping an exported symbol to a target already present in the registry, tagged by the kind of item it links.
WasmLoader
Loader for .wasm component libs, backed by a host wasm runtime.

Enums§

ReexportKind
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.