Automatically provide "wasi_snapshot_preview1"."fd_write": [I32, I32, I32, I32] -> [I32] import that uses Godot's print().
The most basic WASI binding that's typically used for logging and reporting errors as in the following examples.
Grain requires this import for even the most trivial functionality (although allows avoiding this using --wasi-polyfill CLI option) as it may throw. Further, the print() function uses the same import.
AssemblyScript's console.log() function uses this import. This creates a "env"."console.log": [I32] -> [] import. Using AS WASI shim results in the expected WASI import.
Automatically provide
"wasi_snapshot_preview1"."fd_write": [I32, I32, I32, I32] -> [I32]
import that uses Godot'sprint()
.The most basic WASI binding that's typically used for logging and reporting errors as in the following examples.
--wasi-polyfill
CLI option) as it may throw. Further, theprint()
function uses the same import.AssemblyScript'sThis creates aconsole.log()
function uses this import."env"."console.log": [I32] -> []
import. Using AS WASI shim results in the expected WASI import.