Skip to main content

Crate sim_run_loaders

Crate sim_run_loaders 

Source
Expand description

Low-level loader plugins for the SIM bootloader.

The crate owns loader mechanisms that the sim binary composes behind feature gates. It deliberately depends on kernel and codec contracts rather than the SDK umbrella.

Native and wasm loaders both surface site exports as opaque registry values keyed by placement symbols. The kernel stores the value and export record; server and agent libraries give the value EvalSite behavior.

Constants§

BYTES_SOURCE_KIND
Loader-defined kind for in-memory artifact bytes.
CONTENT_ADDRESS_SOURCE_KIND
Loader-defined kind for content-addressed library artifacts.
PATH_SOURCE_KIND
Loader-defined kind for local filesystem paths.
URL_SOURCE_KIND
Loader-defined kind for remote URLs.

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