Skip to content

Commit

Permalink
working simple echo WASM template with both listener + dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Chi committed Sep 29, 2023
1 parent 9ce5cbb commit 253ba65
Show file tree
Hide file tree
Showing 12 changed files with 1,635 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
target = "wasm32-wasi"

[target.wasm32-wasi]
runner = ["wasmtime", "run", "--tcplisten", "127.0.0.1:12345"]
rustflags = [ "--cfg", "tokio_unstable"]
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: WASM

on:
push:
branches: [ "wasm-template-v1.0" ]
pull_request:
branches: [ "wasm-template-v1.0" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --target wasm32-wasi --verbose
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*/target
/target
.DS_Store
.vscode
Loading

0 comments on commit 253ba65

Please sign in to comment.