Wasmex.Wasi.WasiOptions (wasmex v0.8.3)

Configures WASI support for a Wasmex.Store.

options

Options

example

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,
...> })

Link to this section Summary

Link to this section 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
}