Expand description
§generate-did
generate-did is a CLI tool to generate Candid (.did) files for Internet Computer Rust canisters.
See the README for CLI usage and installation instructions.
§Installing candid-extractor
Install the candid-extractor crate
cargo install candid-extractorCall the export_candid macro at the end of your lib.rs file
// Enable Candid export
ic_cdk::export_candid!();§Install generate-did
cargo install generate-didThen run this command in the root of the canister project.
generate-did <canister_name>Structs§
- DidGenerator
- A struct for generating Candid (.did) files for Internet Computer canisters.
Enums§
- DidGenerator
Error - Errors that can occur during DID generation.