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_
on Deprecated - 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_heartbeatentry point of a canister. - import
- Import another canister as a rust struct.
- init
- Register the
canister_initentry point of a canister. - inspect_
message - Register the
canister_inspect_messageentry point of a canister. - post_
upgrade - Register the
canister_post_upgradeentry point of a canister. - pre_
upgrade - Register the
canister_pre_upgradeentry point of a canister. - query
- Register a query call entry point.
- update
- Register an update call entry point.