Adds `crates/wasm-actor/` (swactor-wasm-actor), which embeds wasmtime-sandboxed Wasm instances inside regular swactor actors. Messages flow as raw bytes through the guest ↔ host contract (alloc/handle exports, swactor.send import). The host drains an outbox after each handle call and routes messages via ctx.send(). Includes 3 no_std guest modules (echo, double, silent) and 7 integration tests covering roundtrip delivery, binary fidelity, multi-send, error cases, engine sharing, and native↔wasm interop. Authored by Claude, lovingly guided by Zachery Aaron Shores-Chmielewski
12 lines
219 B
TOML
12 lines
219 B
TOML
[package]
|
|
name = "swactor-wasm-actor"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
swactor = { path = "../.." }
|
|
wasmtime = "29"
|
|
|
|
[dev-dependencies]
|
|
swactor = { path = "../..", features = ["getrandom"] }
|
|
wat = "1"
|