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.

Functions§

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.
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.
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.
wasm_load_capability
Capability required to instantiate wasm component libs.