pub struct PackManifest {Show 19 fields
pub mode: PackMode,
pub image: String,
pub digest: String,
pub platform: String,
pub entrypoint: Vec<String>,
pub cmd: Vec<String>,
pub env: Vec<String>,
pub secret_refs: BTreeMap<String, SecretRef>,
pub workdir: Option<String>,
pub cpus: u8,
pub mem: u32,
pub image_size: u64,
pub network: bool,
pub gpu: bool,
pub cuda: bool,
pub host_platform: String,
pub created: String,
pub smolvm_version: String,
pub assets: AssetInventory,
}Expand description
Manifest describing the packed image and configuration.
Fields§
§mode: PackModeExecution mode (container or VM).
image: StringOriginal image reference (e.g., “alpine:latest”).
digest: StringImage digest (sha256:…).
platform: StringTarget platform (e.g., “linux/arm64”).
entrypoint: Vec<String>Entrypoint command (from image config or override).
cmd: Vec<String>Default command arguments (from image config or override).
env: Vec<String>Default environment variables.
secret_refs: BTreeMap<String, SecretRef>Secret references carried with the pack. Each maps an env var name to a
reference (host store entry, host env var, or file) — never an inline
value. The plaintext is resolved on the run host at exec time, so a
.smolmachine never contains secret material at rest.
workdir: Option<String>Working directory (from image config or override).
cpus: u8Default number of vCPUs.
mem: u32Default memory in MiB.
image_size: u64Total extracted (on-disk) image size in bytes. Used to auto-size the storage disk at runtime.
network: boolWhether outbound networking is enabled by default.
gpu: boolEnable GPU acceleration (Vulkan via virtio-gpu).
cuda: boolEnable CUDA-over-vsock: the runtime starts a host CUDA server and bridges
the guest’s CUDA client to it. Preserved from the source VM’s cuda flag
when packing --from-vm. #[serde(default)] keeps older sidecars (which
lack the field) loadable.
host_platform: StringHost platform this .smolmachine runs on (e.g., “darwin/arm64”).
Distinct from platform which is the guest architecture (always linux).
Used for registry Image Index resolution. #[serde(default)] keeps
pre-reset packs (which predate this field) loadable — a local run selects
libs by the actual host, so an empty value is harmless.
created: StringRFC 3339 timestamp when this machine was packed. Defaulted so older packs that lack it still load.
smolvm_version: Stringsmolvm version that built this machine (e.g., “0.1.15”). Defaulted so older packs that lack it still load.
assets: AssetInventoryAsset inventory - files included in the assets blob.
Implementations§
Source§impl PackManifest
impl PackManifest
Trait Implementations§
Source§impl Clone for PackManifest
impl Clone for PackManifest
Source§fn clone(&self) -> PackManifest
fn clone(&self) -> PackManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more