Registry / other / ic-cdk

ic-cdk

JSON →
library0.20.2rscratesunverified

Canister Developer Kit for the Internet Computer.

# Cargo.toml [dependencies] ic-cdk = "0.20.2"
INSTALL
IMPORT
SIG · IC-CDK
I
ic-cdk
otherrustv0.20.2
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.

call
use ic_cdk::api::call::call;

Defines an update method that returns a greeting.

use ic_cdk::api::call::call; #[ic_cdk_macros::update] async fn greet(name: String) -> String { format!("Hello, {}!", name) }
Debug
Known issues
gotchaRequires the ic-cdk-macros crate for #[update] and #[query] macros
fix
Add ic-cdk-macros to your dependencies
affects: *
Upgrade
Version history
0.20.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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