Kettlecorn.Runtime.Manifest (kettlecorn v0.1.0)

Copy Markdown View Source

A runtime's manifest.json, as Kettlecorn.Runtime.load/1 reads it for a runtime with this library's protocol version.

  • kettlecorn - the runtime's version.
  • protocol - the protocol version (Kettlecorn.Runtime.protocol_version/0).
  • platform - the native launcher's system: x86_64-linux, aarch64-linux or aarch64-darwin.
  • otp, elixir - the guest's OTP and Elixir versions.
  • imports - the WASI interfaces each emulator imports, by file name ("beam.wasm", "beam-http.wasm"): what a host must provide.
  • tested_wasmtime - the Wasmtime version embedded in the launcher ("tested_with": {"wasmtime": ...} in the file; the runtime also writes it to launch/engine-version for debugging with the CLI).

Summary

Types

t()

@type t() :: %Kettlecorn.Runtime.Manifest{
  elixir: String.t(),
  imports: %{required(String.t()) => [String.t()]},
  kettlecorn: String.t(),
  otp: String.t(),
  platform: String.t(),
  protocol: pos_integer(),
  tested_wasmtime: String.t()
}