Defined in: src/wasm_config.rs
THIS IS NOT A CLASS!
It documents configuration options for instantiation. Configuration value is a dictionary with key is configuration name.
- Feature gate:
epoch-timeout
- Type:
bool
- Default:
false
Enables epoch-based timeout.
- Feature gate:
epoch-timeout
- Type:
null|int|float
- Default:
null
Sets how many second the instance can run.
If not set or null
, it defaults to 5 seconds.
- Feature gate:
epoch-timeout
- Type:
bool
- Default:
false
If enabled, automatically resets epoch timer whenever it returns from host.
- Feature gate:
memory-limiter
- Type:
int
If set, it limits the amount of extra bytes all Webassembly memories can allocate.
- Feature gate:
memory-limiter
- Type:
int
If set, it limits the amount of extra entries all Webassembly tables can allocate.
- Feature gate:
wasi
- Type:
bool
- Default:
false
Enables usage of WASI.
- Feature gate:
wasi
- Type:
WasiContext
Sets which WASI context object it can use.
- Feature gate:
wasi
- Type:
Array
Sets arguments of the instance. NOTE: First argument is the "executable name".
- Feature gate:
wasi
- Type:
Dictionary
Sets additional environment variables for the instance.
- Feature gate:
wasi
- Type:
bool
- Default:
false
If enabled, it prevents Webassembly from writing to filesystem. Only useful with context set, as by default it can't access anything.
- Feature gate:
wasi
- Type:
String
Must be one of these value:
"context"
(default) : Connect standard input to context object."unbound"
: Do not connect standard input."instance"
: Connect standard input to instance object.
- Feature gate:
wasi
- Type:
PackedByteArray
Prefill standard input with data.
- Feature gate:
wasi
- Type:
string
Prefill standard input with in-memory file. Useful only with context set.
- Feature gate:
wasi
- Type:
String
Must be one of these value:
"context"
(default) : Connect standard output to context object."unbound"
: Do not connect standard output."instance"
: Connect standard output to instance object.
- Feature gate:
wasi
- Type:
String
Must be one of these value:
"line"
(default) : Buffers by line. Emits as string."block"
: Buffers by block. Emits as PackedByteArray."unbuffered"
: Disable buffering. Emits as PackedByteArray.
- Feature gate:
wasi
- Type:
String
Must be one of these value:
"context"
(default) : Connect standard error to context object."unbound"
: Do not connect standard error."instance"
: Connect standard error to instance object.
- Feature gate:
wasi
- Type:
String
Must be one of these value:
"line"
(default) : Buffers by line. Emits as string."block"
: Buffers by block. Emits as PackedByteArray."unbuffered"
: Disable buffering. Emits as PackedByteArray.
- Type:
String
Must be one of these value:
"none"
or"no_binding"
(default) : Do not expose Godot API."compat"
or"registry"
: Use legacy index-based Godot API."extern"
or"native"
: Use new extern-based Godot API.