cdk-rsx
A Rust SDK for Internet Computer canisters, with wasm64 as the default target and explicit wasm32 support. It combines private persistent module memory, bounded message codecs and durable orchestration. This repository contains the SDK and the tools used to test, measure and investigate it.
Use the Agent quickstart to install from Cargo and build your first canister. The SDK documentation links architecture, build and development guides to the documentation owned by each crate. See current support and limits for supported APIs and upgrade paths.
Find your way
| Entry point | What you will find |
|---|---|
| SDK workspace | Product crates, compiler setup and build tools. The complete crate map lists every package. |
| Documentation | Shared SDK guidance and links to crate APIs and authoring guides. Start with building or testing. |
| Tests | Integration fixtures and host helpers spanning crates. Individual crates own their local tests. |
| Benchmarks | RRT Heavy16 and focused workloads for SDK costs. PR benchmarks explain the short regression screen. |
| Verification | Formal specifications, proof harnesses and verification runners. Each scope states its assumptions and limits. |
| Research | Dated investigations, source reviews and benchmark findings. Recorded revisions describe the original experiment. |
Main libraries
Each library owns its detailed documentation. These links describe the main boundaries; use the crate map for the smaller support and derive crates.
| Library | Purpose |
|---|---|
| CDK facade | Canister methods, calls, lifecycle and bounded Wire integration. Connects application entry points to the SDK runtime. |
| Store | Private, composable module memories and scoped services. Owns startup, version admission and explicit conversion boundaries. |
| Nyxus, Hylix, Minima | Nyxus and Hylix back Store memory declarations with retained heap and stable records. Minima supplies fixed-width collection storage with retained ownership. |
| Collections | Owner-private persistent containers for Nyxus and Hylix. Minima collections provide a separate fixed-width family. |
| Graph | Logical adjacency and bounded sorted-neighbor intersections. Nyxus Graph and Minima collections supply concrete storage. |
| Ashroot | Typed tables, indexes and relationships over SDK storage engines. Makes schema and relationship policies explicit in application code. |
| Reactor | Durable ordered delivery and fair scheduling. Tracks response addresses, callback permits and exact retry bytes. |
| Rechain | Typed reducers and certified, replayable history. Includes bounded reading and archive-transfer primitives. |
| Takt | Typed workflow execution with durable progress and call accounting. Its generator turns workflow JSON into Rust bindings. |
| IC Wire | Default and recommended format for bounded application and peer messages. The SDK supplies types and generated clients. |
| Tripwire | Experimental performance format for explicit header-first endpoints with selective field reads and borrowed builders. |
| Crypto | Grouped cryptographic primitives and protocol compositions with explicit inputs. Each family documents its formats, upstream provenance and experimental limits. |
| Compression | Reusable LZ4 block compression and checked decompression. Algorithms use borrowed input and caller-owned output without IC dependencies. |
Work in this repository
The memory and orchestration packages use the source-available ICP3V license. Other packages declare their own terms. See the license map and contribution guide.
Use an ordinary clone; SDK and harness source share one commit, with no submodules. Follow building for the pinned compiler and canonical artifacts, and testing to select a crate, suite or all registered checks with parallel workers and structured reports.
playground/ and tmp/ are ignored scratch space. Keep reusable source in its
owning crate, tests/ or benches/, and authored findings under research/.
The SDK's original history and former branch tips are retained through
sdk-archive/ tags; historical reports keep their original source identities.