vebodev / axum-wasm-test

Testing Axum & Tokio with WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test code for Axum, Tokio, WASI

Compiling:

  1. Build with Tokio unstable flag:
    • RUSTFLAGS="--cfg tokio_unstable" cargo build

Run with Enarx:

  1. Get Enarx
  2. Run: CARGO_TARGET_WASM32_WASI_RUNNER="enarx run --wasmcfgfile Enarx.toml" cargo run --target=wasm32-wasi

Run with Wasmtime:

  1. Get Wasmtime
  2. Run: CARGO_TARGET_WASM32_WASI_RUNNER="wasmtime run --tcplisten 127.0.0.1:8080 --env FD_COUNT=3" cargo run --target=wasm32-wasi

About

Testing Axum & Tokio with WebAssembly

License:Apache License 2.0


Languages

Language:Rust 89.6%Language:Shell 10.4%