Skip to content

Rust CDK

TODO: Write content for this page.

Getting started with Rust on ICP. Cover the ic-cdk overview (what it provides), project setup with the @dfinity/rust recipe, canister macros (#[update], #[query], #[init], #[pre_upgrade], #[post_upgrade]), message types and how they map to Rust functions, inter-canister calls from Rust, and known limitations/workarounds. Include a minimal canister example.

  • getting-started/quickstart — Rust template path
  • guides/backends/data-persistence — Rust data patterns
  • languages/rust/stable-structures — stable memory in Rust
  • languages/rust/testing — testing Rust canisters