Crate ic_cdk_macros
source ·Expand description
This crate provide a set of attribute macros to faciliate canister development.
The macros fall into two categories:
- To register functions as canister entry points
- To import another canister as a rust struct for inter-canister operation.
Register functions as canister entry points
These macros are directly related to the Internet Computer Specification.
Import another canister as a rust struct
Attribute Macros
- Register the
canister_heartbeatentry point of a canister. - Import another canister as a rust struct.
- Register the
canister_initentry point of a canister. - Register the
canister_inspect_messageentry point of a canister. - Register the
canister_post_upgradeentry point of a canister. - Register the
canister_pre_upgradeentry point of a canister. - Register a query call entry point.
- Register an update call entry point.