Skip to main content

Plugin Management

Commands

List Plugins

# List installed plugins
wasmrun plugin list

# Detailed view
wasmrun plugin list --all

Install

# From crates.io
wasmrun plugin install wasmrust

# Specific version
wasmrun plugin install wasmrust --version 0.5.0

Uninstall

wasmrun plugin uninstall wasmrust

Update

# Update one plugin
wasmrun plugin update wasmrust

# Update all
wasmrun plugin update all

Enable / Disable

wasmrun plugin enable wasmrust
wasmrun plugin enable wasmrust --disable

Info

wasmrun plugin info wasmrust

Plugin Requirements

Each external plugin requires its language toolchain to be installed:

PluginRequirements
wasmrustRust toolchain + wasm32-unknown-unknown target
wasmgoTinyGo
waspyPython 3.8+
wasmascNode.js + npm/yarn/pnpm/bun

Creating Plugins

Plugins implement the WasmBuilder trait:

pub trait WasmBuilder {
fn can_handle(&self, project_path: &str) -> bool;
fn check_dependencies(&self) -> Vec<String>;
fn build(&self, config: &BuildConfig) -> Result<BuildResult, CompilationError>;
}

See Creating Plugins for a full guide.