Crate ic_cdk_macros
source ·Expand description
This crate provide a set of attribute macros to facilitate canister development.
The macros fall into two categories:
- To register functions as canister entry points
- To export candid definitions
Register functions as canister entry points
These macros are directly related to the Internet Computer Specification.
Export candid definitions
Macros
- Create a
get_candid_pointer
method so thatdfx
can execute it to extract candid definition.
Attribute Macros
- Register the
canister_heartbeat
entry point of a canister. - 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.