additional file fix
This commit is contained in:
parent
f90881b03d
commit
698665215b
9 changed files with 64 additions and 88 deletions
21
examples/wasi/README.md
Normal file
21
examples/wasi/README.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# WASI Example
|
||||
|
||||
## Description
|
||||
|
||||
This example demonstrates how to build a WASI project
|
||||
|
||||
## Expected Result
|
||||
|
||||
Hello World! appears in the browser console.
|
||||
|
||||
|
||||
## How to Run
|
||||
|
||||
```bash
|
||||
crafter-build build executable
|
||||
run.sh
|
||||
```
|
||||
|
||||
and go to `http://localhost:8080/`
|
||||
|
||||
if caddy is not installed you can use your favorite static file server instead
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "main",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "example",
|
||||
"name": "executable",
|
||||
"implementations": ["main"],
|
||||
"target": "wasm32-wasi"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
caddy file-server --listen :8080 --root bin/example
|
||||
caddy file-server --listen :8080 --root bin/executable
|
||||
Loading…
Add table
Add a link
Reference in a new issue