Skip to content

chore: migrate rust/performance_counters to icp-cli#1399

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

chore: migrate rust/performance_counters to icp-cli#1399
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-performance-counters-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Migrate rust/performance_counters from dfx to icp-cli (icp.yaml, @dfinity/rust@v3.3.0)
  • Move Rust source from src/lib.rs to backend/lib.rs; add workspace Cargo.toml with members = ["backend"]
  • Update inter-canister call API from deprecated ic_cdk::call() to ic_cdk::call::Call and ic_cdk::api::canister_self() (ic-cdk 0.20)
  • Add Makefile with make test asserting non-zero counters for for_update, for_composite_query, and example
  • Add CI workflow (.github/workflows/performance_counters.yml) with ghcr.io/dfinity/icp-dev-env-rust:1.0.0
  • Delete dfx.json, BUILD.md, performance_counters.did, .devcontainer/

Test plan

  • CI passes
  • icp network start -d && icp deploy && make test succeeds locally

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