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.
24 lines
411 B
24 lines
411 B
1 year ago
|
# AssemblyScript WASI Demo
|
||
|
|
||
|
This demo shows some WASI features off such as System Time, User Input, Writing to the Console, and Random Numbers.
|
||
|
The module `@assemblyscript/wasi-shim` as well as a wasi-enabled runtime are required.
|
||
|
|
||
|
## Setup
|
||
|
|
||
|
Navigate to `./docs/assemblyscript_demo` and run
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
```
|
||
|
|
||
|
Build the AssemblyScript demo file
|
||
|
|
||
|
```
|
||
|
npm run build
|
||
|
```
|
||
|
|
||
|
Run the WASI Demo
|
||
|
|
||
|
```
|
||
|
npm run demo
|
||
|
```
|