Crate generate_did

Source
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-extractor

Call 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-did

Then 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§

DidGeneratorError
Errors that can occur during DID generation.