Crates.io | candid-extractor |
lib.rs | candid-extractor |
version | 0.1.4 |
source | src |
created_at | 2023-09-18 16:38:25.861576 |
updated_at | 2024-05-10 17:06:06.502408 |
description | CLI tool to extract candid definition from canister WASM. |
homepage | |
repository | https://github.com/dfinity/cdk-rs |
max_upload_size | |
id | 976095 |
size | 59,071 |
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:
ic0.txt
in the root of this project;cargo run --example=generate_mock_wat
;ic_mock.wat
should be updated.