v2 nearly done
This commit is contained in:
parent
5e1fcd8590
commit
f13671b2be
24 changed files with 1467 additions and 314 deletions
|
|
@ -1,21 +0,0 @@
|
|||
# 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
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import std;
|
||||
|
||||
int main() {
|
||||
std::println("Hello World!");
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"name": "main",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "executable",
|
||||
"implementations": ["main"],
|
||||
"target": "wasm32-wasi"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
caddy file-server --listen :8080 --root bin/executable
|
||||
Loading…
Add table
Add a link
Reference in a new issue