Registry / serialization / candid

candid

JSON →
library0.10.29rscratesunverified

Candid is an interface description language (IDL) for interacting with canisters on the Internet Computer.

# Cargo.toml [dependencies] candid = "0.10.29"
INSTALL
IMPORT
SIG · CANDID
C
candid
serializationrustv0.10.29
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.

CandidType
use candid::CandidType;

Defines a Candid-compatible data structure.

use candid::{CandidType, Deserialize}; #[derive(CandidType, Deserialize)] struct MyData { name: String, age: u32, } fn main() { println!("Candid type defined"); }
Debug
Known issues
gotchaRequires the `ic-cdk` runtime for actual canister deployment
fix
Add `ic-cdk` as a dependency and use its macros for canister functions.
affects: >=0.10.0
Upgrade
Version history
0.10.29latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
candid — cargo add candid · libregistry