You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
560 B

/**
* WASI is enabled through asconfig.json in post 0.20.x versions of AssemblyScript.
* The module, @assemblyscript/wasi-shim is required to enable a WASI environment.
*
* This demo is meant to showcase some abilities of WASI utilized through the AssemblyScript language.
* It uses the latest version of AssemblyScript and will not work in older (<0.20.x) versions.
**/
// @assemblyscript/as-wasi overrides console.log to use WASI bindings.
// Print text to the terminal.
console.log("Hello World from WASI-enabled AssemblyScript utilizing WasmTime!");