Rust bindings for Lunatic's stdlib
This library contains higher level wrappers for low level Lunatic syscalls.
Example
Create 1_000 child processes and calculate the sum of numbers from 0 to i in each child process, then send the result back to the parent process and print it.
use ;
// Child process calculates the sum of numbers of context.1 until context.0 index.
)
Compile your app to a WebAssembly target:
cargo build --release --target=wasm32-wasi
and run it with
lunatic target/wasm32-wasi/release/<name>.wasm