Fibonacci in plain Rust/WASM — no wasm-bindgen, no JS glue.
Uses a raw #[no_mangle] extern "C" export and the legacy numeric-argument invoke route.
ribo deploy # runs: cargo build --target wasm32-unknown-unknown --release# POST /invoke/<addr>/fibonacci with JSON {"args":[n]}
curl -X POST http://localhost:8080/invoke/<addr>/fibonacci -d '{"args":[10]}'
# → {"result": 55, ...}
# or via query string
curl 'http://localhost:8080/invoke/<addr>/fibonacci?args=10'- The simplest possible WASM Cell: one
#[no_mangle]function, no dependencies - Legacy
/invoke/:addr/:fnroute for plain-WASM numeric calls - The distinction between plain-WASM cells (numeric args,
/invoke) and wasm-bindgen cells (HTTP handler,/<addr>/*) cargo build --target wasm32-unknown-unknownas the build command (no wasm-pack needed)