Crate ic_cdk

source ·
Expand description

This crate provides building blocks for developing Internet Computer canisters.

You can check the Internet Computer Specification for a full list of the system API functions.

Re-exports

Modules

  • System API and low level functions for it.
  • Re-exports crates those are necessary for using ic-cdk
  • Tools for managing stable storage of data in a canister.

Macros

  • Format and then print the formatted message
  • Format and then print the formatted message

Functions

  • block_onDeprecated
    See documentation for spawn.
  • Setup the stdlib hooks.
  • Spawn an asynchronous task that drives the provided future to completion.

Attribute Macros

  • Register the canister_heartbeat entry point of a canister.
  • Import another canister as a rust struct.
  • Register the canister_init entry point of a canister.
  • Register the canister_inspect_message entry point of a canister.
  • Register the canister_post_upgrade entry point of a canister.
  • Register the canister_pre_upgrade entry point of a canister.
  • Register a query call entry point.
  • Register an update call entry point.