icp_build_rust_canister
Compile Rust canister projects to WASM for the Internet Computer, supporting release mode. Requires Rust and the wasm32-unknown-unknown target.
Instructions
Compile a Rust canister project to WASM. Requires Rust and wasm32-unknown-unknown target.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "icp_build_rust_canister"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| release | No | Build in release mode (default: true) | |
| project_path | Yes | Path to the Rust project (containing Cargo.toml) |