candid-extractor

Crates.iocandid-extractor
lib.rscandid-extractor
version0.1.4
sourcesrc
created_at2023-09-18 16:38:25.861576
updated_at2024-05-10 17:06:06.502408
descriptionCLI tool to extract candid definition from canister WASM.
homepage
repositoryhttps://github.com/dfinity/cdk-rs
max_upload_size
id976095
size59,071
Eric Swanson (ericswanson-dfinity)

documentation

README

candid-extractor

A CLI tool to extract candid definition from canister WASM.

Installation

cargo install candid-extractor

Usage

candid-extractor path/to/canister.wasm

Update ic_mock.wat

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:

  1. replace ic0.txt in the root of this project;
  2. execute cargo run --example=generate_mock_wat;

ic_mock.wat should be updated.

Commit count: 313

cargo fmt