Loading...
Loading...
WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.
npx skill4agent add thebeardedbearsas/claude-craft wasmwasm-packGOOS=js GOARCH=wasmuse wasm_bindgen::prelude::*;
#[wasm_bindgen] pub fn add(a: i32, b: i32) -> i32 { a + b }wasm-pack build --target webimport init, { add } from './pkg/wasm.js';
await init(); add(2, 3);rustc --target wasm32-wasi main.rs -o app.wasm
wasmtime app.wasminterface math { add: func(a: s32, b: s32) -> s32 }import wasm from './processor.wasm';
export default {
async fetch(req) {
const inst = await WebAssembly.instantiate(wasm);
return new Response(inst.exports.process(req.body));
}
};@.claude/skills/edge-computing/SKILL.md