Installation¶
Run 2.0 features are included when you install Run with the v2 feature flag.
Install Run¶
From crates.io (recommended)¶
From source¶
Verify¶
You should see:
Run 2.0 (Experimental) - WASI Universal Runtime
COMMANDS:
init Initialize a new project
build Build all components
dev Start development server
exec Execute in production mode
test Run component tests
install Install a WASI component
publish Publish component to registry
deploy Package and deploy components
info Show project/component information
update Update dependencies
verify Verify lockfile integrity
clean Clean build artifacts
compose Docker Compose migration
toolchain Manage toolchains
Required: wasm-tools¶
wasm-tools is the standard WebAssembly toolchain for parsing, validating, and composing components:
Verify:
Language-Specific Toolchains¶
You only need these if you're writing components in that language. You do NOT need any of these to get started — the quickstart uses WAT which only requires wasm-tools.
| Language | Toolchain | Install |
|---|---|---|
| Rust | cargo-component | cargo install cargo-component |
| Python | componentize-py | pip install componentize-py |
| Go | TinyGo | tinygo.org/getting-started |
| JavaScript | jco | npm install -g @bytecodealliance/jco |
| TypeScript | jco | npm install -g @bytecodealliance/jco |
| Zig | Zig + wasm-tools | ziglang.org/download |
Toolchain Locking¶
For reproducible builds across machines (CI/CD, team collaboration), lock your toolchain versions:
This creates run.lock.toml with exact versions:
Commit this file to version control.