Skip to main content

Crate canic_cdk

Crate canic_cdk 

Source

Re-exports§

pub use candid;
pub use ic_cdk_management_canister as mgmt;
pub use ic_cdk_timers as timers;
pub use icrc_ledger_types;

Modules§

api
System API bindings.
call
Inter-canister Call API
env
Environment constants grouped by domain (ck, NNS, SNS).
futures
Functions relating to the async executor.
spec
Canonical representations of external IC specs (ICRC, NNS, SNS, etc.). This module corrals the verbose candid bindings so the rest of the codebase can import clean wrappers with consistent naming.
structures
Stable-structure re-exports plus a few small Canic wrappers.
types
Common IC-facing value types re-exported through the Canic CDK surface.
utils
Small runtime-safe helpers shared across the Canic stack.

Macros§

eprintln
Format and then print the formatted message
export_candid
export_candid_debug
Export Candid only in debug builds.
println
Format and then print the formatted message

Functions§

trap
Traps with the given message.

Attribute Macros§

init
post_upgrade
query
update