Crate spin_loader

Crate spin_loader 

Source
Expand description

Loaders for Spin applications. This crate implements the possible application sources for Spin applications, and includes functionality to convert the specific configuration (for example local configuration files or from OCI) into Spin configuration that can be consumed by the Spin execution context.

This crate can be extended (or replaced entirely) to support additional loaders, and any implementation that produces a Application is compatible with the Spin execution context.

Modules§

cache
Cache for OCI registry entities.

Structs§

WasmLoader
Handles loading of component Wasm from different sources.

Enums§

FilesMountStrategy
The strategy to use for mounting WASI files into a guest.

Functions§

from_file
Load a Spin locked app from a spin.toml manifest file. If files_mount_root is given, files mounts will be copied to that directory. If not, files mounts will validated as “direct mounts”.
from_wasm_file
Load a Spin locked app from a standalone Wasm file.
requires_service_chaining
Determines if a component requires the host to support local service chaining.