Skip to content

chore: migrate rust/parallel_calls to icp-cli#1414

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

chore: migrate rust/parallel_calls to icp-cli#1414
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-parallel-calls-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replaces dfx.json with icp.yaml using @dfinity/rust@v3.3.0 for both caller and callee canisters
  • Moves sources from src/caller/ and src/callee/ to top-level caller/ and callee/ subdirs, workspace Cargo.toml updated accordingly
  • Eliminates setup_callee — the caller now discovers the callee principal at first use via PUBLIC_CANISTER_ID:callee injected by icp-cli
  • Upgrades ic-cdk from 0.17 to 0.20 and updates inter-canister calls to the new Call::bounded_wait API (replacing the removed ic_cdk::api::call::call)
  • Updates rust-toolchain.toml to remove pinned 1.78.0 channel (too old for current dependencies)
  • Adds Makefile with 4 numbered tests covering sequential/parallel behavior at both small (n=10) and large (n=2000) call counts
  • Adds rust-parallel_calls and rust-parallel_calls-multi-subnet jobs to the existing parallel_calls.yml CI workflow; deletes the old rust-parallel-calls-example.yml
  • The multi_subnet/ PocketIC test is preserved unchanged; make test-multi-subnet builds WASMs via cargo build and runs the cross-subnet timing test

Test plan

  • icp network start -d && icp deploy && make test passes in rust/parallel_calls
  • make test-multi-subnet passes (requires PocketIC server installed)
  • CI jobs rust-parallel_calls and rust-parallel_calls-multi-subnet pass in the workflow
  • Existing motoko-parallel_calls CI jobs are unaffected

🤖 Generated with Claude Code

Replace dfx.json with icp.yaml (@dfinity/rust@v3.3.0), move sources
from src/caller/ and src/callee/ to top-level caller/ and callee/
subdirs, update caller to discover callee via PUBLIC_CANISTER_ID:callee
env var (eliminating setup_callee), upgrade ic-cdk to 0.20 with the
new Call::bounded_wait API, add Makefile with numbered tests for
sequential/parallel behaviour, and add rust-parallel_calls jobs to the
existing parallel_calls.yml CI workflow.

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