Skip to content

chore: migrate rust/daily_planner to icp-cli#1403

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

chore: migrate rust/daily_planner to icp-cli#1403
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-daily-planner-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replace dfx.json with icp.yaml using @dfinity/rust@v3.3.0 recipe with frontend
  • Migrate frontend from dfx declarations/vite-plugin-environment to @icp-sdk/bindgen + actor.js
  • Update backend HTTP outcalls from deprecated ic_cdk::api::management_canister (ic-cdk <0.17) to ic_cdk::management_canister (ic-cdk 0.20) with new HttpRequestArgs API
  • Add Makefile with 6 tests covering all public canister methods
  • Add rust-daily_planner CI job to the existing daily_planner.yml workflow (container: icp-dev-env-rust:1.0.0)
  • Delete dfx.json, BUILD.md, .devcontainer/, and update README with icp-cli instructions

Test plan

  • icp network start -d && icp deploy deploys backend and frontend canisters
  • make test passes all 6 tests: get_day_data, add_note, get_day_data (stored), get_month_data, complete_note, get_month_data (empty)
  • Frontend builds and loads correctly in the browser
  • CI job rust-daily_planner passes

🤖 Generated with Claude Code

Replace dfx.json with icp.yaml, update frontend to use @icp-sdk/bindgen
and actor.js pattern, update backend HTTP outcalls to ic-cdk 0.20 API,
add Makefile with tests, and add rust-daily_planner CI job.

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