Registry / other / ic-cdk-macros

ic-cdk-macros

JSON →
library0.20.1rscratesunverified

Canister Developer Kit macros.

# Cargo.toml [dependencies] ic-cdk-macros = "0.20.1"
INSTALL
IMPORT
SIG · IC-CDK-MACROS
I
ic-cdk-macros
otherrustv0.20.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

update
use ic_cdk_macros::update;

Define an Internet Computer canister update method.

use ic_cdk_macros::update; #[update] fn greet(name: String) -> String { format!("Hello, {}!", name) }
Debug
Known issues
gotchaRequires ic-cdk runtime and proper canister setup.
fix
Ensure ic-cdk is added as a dependency and the canister is deployed on the Internet Computer.
affects: >=0.20.1
Upgrade
Version history
0.20.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
2
Resources
ic-cdk-macros — cargo add ic-cdk-macros · libregistry