Skip to content

Commit 1b6a681

Browse files
marc0oloclaude
andcommitted
chore: migrate rust/composite_query to icp-cli
- Replace dfx.json with icp.yaml using @dfinity/rust@v3.3.0 - Rename canisters: kv_frontend → caller, data_partition → callee - Move each canister into its own subdirectory (caller/, callee/) - Update workspace Cargo.toml to reference new members - Rewrite caller/lib.rs: replace ic_cdk::api::management_canister with ic-cdk-management-canister crate, replace ic_cdk::api::call::call with ic_cdk::call::Call::bounded_wait pattern - Add Makefile with 7 tests covering put, composite query get, get_update, null lookup, multi-partition routing, and lookup composite query - Add rust-toolchain.toml with wasm32-unknown-unknown target - Add rust-composite_query job to composite_query.yml workflow - Delete legacy rust-composite_query-example.yml workflow - Update README with icp-cli deploy instructions and architecture diagram Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bafb2cf commit 1b6a681

18 files changed

Lines changed: 291 additions & 1170 deletions

File tree

‎.github/workflows/composite_query.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
paths:
88
- motoko/composite_query/**
9+
- rust/composite_query/**
910
- .github/workflows/composite_query.yml
1011

1112
concurrency:
@@ -26,3 +27,17 @@ jobs:
2627
icp network start -d
2728
icp deploy --cycles 30t
2829
make test
30+
31+
rust-composite_query:
32+
runs-on: ubuntu-24.04
33+
container: ghcr.io/dfinity/icp-dev-env-rust:1.0.0
34+
env:
35+
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
steps:
37+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
38+
- name: Deploy and test
39+
working-directory: rust/composite_query
40+
run: |
41+
icp network start -d
42+
icp deploy --cycles 30t
43+
make test

‎.github/workflows/rust-composite_query-example.yml‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)