Convenient API for configuring WASI
Instance methods
build
Builds the state builder to produce a WasiEnvironment. It consumes the current WasiStateBuilder
SourceConfigures a new argument to the WASI module
Sourcewith_capture_stderr
Configures the WASI module to capture its STDERR
Sourcewith_capture_stdout
Configures the WASI module to capture its STDOUT
SourceConfigures a new environment variable for the WASI module
Sourcewith_inherit_stderr
Configures the WASI module to inherit the STDERR from the host
Sourcewith_inherit_stdin
Configures the WASI module to inherit the STDIN from the host
Sourcewith_inherit_stdout
Configures the WASI module to inherit the STDOUT from the host
SourceConfigures a new directory to pre-open with a different name exposed to the WASI module.
Sourcewith_preopen_dir(dir :
String)
Configures a new directory to pre-open.
This opens the given directory at the virtual root /, and allows
the WASI module to read and write to the given directory.
Source