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§

pub use api::call::call;
pub use api::call::notify;
pub use api::caller;
pub use api::id;
pub use api::print;
pub use api::trap;

Modules§

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

Macros§

eprintln
Format and then print the formatted message
println
Format and then print the formatted message

Functions§

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

Attribute Macros§

heartbeat
Register the canister_heartbeat entry point of a canister.
import
Import another canister as a rust struct.
init
Register the canister_init entry point of a canister.
inspect_message
Register the canister_inspect_message entry point of a canister.
post_upgrade
Register the canister_post_upgrade entry point of a canister.
pre_upgrade
Register the canister_pre_upgrade entry point of a canister.
query
Register a query call entry point.
update
Register an update call entry point.