Wasmex.Wasi.WasiOptions (wasmex v0.9.2)

Configures WASI support for a Wasmex.Store.

Options

Example

iex> {:ok, stdin} = Wasmex.Pipe.new()
iex> Wasmex.Store.new_wasi(%WasiOptions{
...>   args: ["first param", "second param"],
...>   env: %{"env_key" => "env_value"},
...>   preopen: [
...>     %Wasmex.Wasi.PreopenOptions{path: "/tmp"}
...>   ],
...>   stdin: stdin,
...> })

Summary

Types

@type t() :: %Wasmex.Wasi.WasiOptions{
  args: [String.t()],
  env: %{required(String.t()) => String.t()},
  preopen: [Wasmex.Wasi.PreopenOptions],
  stderr: Wasmex.Pipe | nil,
  stdin: Wasmex.Pipe | nil,
  stdout: Wasmex.Pipe | nil
}