Skip to content

chore: migrate rust/canister-snapshots to icp-cli#1402

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

chore: migrate rust/canister-snapshots to icp-cli#1402
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-canister-snapshots-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replace dfx.json with icp.yaml using @dfinity/rust@v3.3.0
  • Move Rust source from src/chat/ to backend/, rename package to backend
  • Update procedure macros from ic-cdk-macros to ic-cdk 0.20 (#[ic_cdk::update], etc.)
  • Add Makefile with test target exercising the full snapshot create/restore lifecycle
  • Rewrite README.md with icp-cli instructions, preserving the key insight that snapshots must be taken/restored while the canister is stopped
  • Add CI workflow (.github/workflows/canister-snapshots.yml) using icp-dev-env-rust:1.0.0
  • Delete legacy dfx workflow (rust-canister-snapshots-example.yaml)

Test plan

  • icp network start -d && icp deploy succeeds
  • make test passes: appends a message, creates snapshot, triggers data loss via remove_spam bug, restores snapshot, verifies message is recovered
  • CI workflow runs on PR and passes

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo force-pushed the chore/migrate-rust-canister-snapshots-to-icp-cli branch from 9d8c3f5 to b72cedc Compare June 16, 2026 18:02
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