A CLI tool to extract candid definition from canister WASM.
cargo install candid-extractor
candid-extractor path/to/canister.wasm
candid-extractor
requires a mock WASM (ic_mock.wat
) which provides ic0 imports.
Such ic_mock.wat
is directly generated from the system API.
When interface-spec releases a new version that modify ic0 system API:
- replace
ic0.txt
in the root of this project; - execute
cargo run --example=generate_mock_wat
;
ic_mock.wat
should be updated.