Skip to content

chore: migrate rust/composite_query to icp-cli#1398

Draft
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-composite-query-to-icp-cli
Draft

chore: migrate rust/composite_query to icp-cli#1398
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-composite-query-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replaces dfx.json with icp.yaml using @dfinity/rust@v3.3.0
  • Renames canisters to caller (was kv_frontend) and callee (was data_partition), matching the Motoko counterpart naming
  • Moves each canister source into its own subdirectory (caller/, callee/) with a workspace Cargo.toml
  • Updates caller/lib.rs to use ic-cdk-management-canister (replaces removed ic_cdk::api::management_canister) and ic_cdk::call::Call::bounded_wait for cross-canister calls (replaces ic_cdk::api::call::call)
  • Adds Makefile with 7 tests covering put, composite query get, get_update, null lookup, multi-partition routing, and lookup
  • Adds rust-composite_query job to the existing composite_query.yml workflow and deletes the legacy rust-composite_query-example.yml
  • Updates README.md with icp-cli deploy instructions and architecture diagram

Test plan

  • icp network start -d && icp deploy --cycles 30t succeeds in rust/composite_query
  • make test passes all 7 tests
  • CI rust-composite_query job passes in the workflow

🤖 Generated with Claude Code

- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant