Skip to content

chore: migrate rust/periodic_tasks to icp-cli#1413

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

chore: migrate rust/periodic_tasks to icp-cli#1413
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-periodic-tasks-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replaces dfx.json with icp.yaml using @dfinity/rust@v3.3.0 for the timer and heartbeat canisters
  • Updates ic-cdk to 0.20 and ic-cdk-timers to 1.0; migrates macro syntax from ic_cdk_macros:: to ic_cdk::
  • Rewrites Makefile with polling-based make test (no deploy dependency, uses icp canister call --query)
  • Updates README.md to use icp-cli commands; preserves key educational content about cycles usage differences between timers and heartbeats
  • Adds .github/workflows/periodic_tasks.yml CI job (ghcr.io/dfinity/icp-dev-env-rust:1.0.0)
  • Removes dfx.json, BUILD.md, and per-example .devcontainer/
  • Simplifies rust-toolchain.toml (removes pinned channel and components, keeps wasm32-unknown-unknown target)

Test plan

  • icp network start -d && icp deploy && make test passes locally in rust/periodic_tasks
  • CI workflow rust-periodic_tasks passes on this PR

🤖 Generated with Claude Code

Replace dfx.json with icp.yaml using @dfinity/rust@v3.3.0 for both the
timer and heartbeat canisters, update ic-cdk to 0.20 and ic-cdk-timers
to 1.0 with the new macro syntax, add polling-based Makefile tests,
update README to use icp-cli commands, add CI workflow, and remove
dfx.json, BUILD.md and the per-example .devcontainer.

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