webassembly-component-development
Installation
SKILL.md
WebAssembly Component Development
This skill provides comprehensive expertise in developing WebAssembly components, including WASI fundamentals, composition patterns, runtime compatibility, and troubleshooting.
Key Defaults
- Build: Use
wash buildwhen the project has.wash/config.yaml. Usewash build --skip-fetchfor plugins (sincewasmcloud:washinterface isn't published). Otherwisecargo build --target wasm32-wasip2 --release. - Target:
wasm32-wasip2(Rust 1.82+ tier-2 target). WASI 0.2 (wasip2) is the current standard. - Async: Pick one —
tokio1.50+ withRUSTFLAGS="--cfg tokio_unstable", orwstd(lighter, Wasm-native). Do not mix. - Strings: Always UTF-8 on wasip2. Avoid
as_encoded_bytes(). - Threading: Unsupported. Design single-threaded. Avoid
rayon, threadedtokio,std::thread::spawn. - wasmCloud docs: Always use https://wasmcloud.com/docs/ — never
/docs/v1/.
Reference Files
Load the relevant file when working on the matching topic: