Skip to content

chore: migrate rust/exchange-rates to icp-cli#1411

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

chore: migrate rust/exchange-rates to icp-cli#1411
marc0olo wants to merge 1 commit into
masterfrom
chore/migrate-rust-exchange-rates-to-icp-cli

Conversation

@marc0olo

Copy link
Copy Markdown
Member

Summary

  • Replaces dfx.json with icp.yaml using @dfinity/rust@v3.3.0 recipe
  • Moves canister source from src/lib.rs to backend/lib.rs; renames package to backend
  • Adds Makefile with a test target (accepts the expected XRC-not-found error on local replica)
  • Adds rust-toolchain.toml pinning the wasm32-unknown-unknown target
  • Adds CI workflow exchange-rates.yml using icp-dev-env-rust:1.0.0
  • Updates README to icp-cli prerequisites and commands; preserves mainnet-only note for HTTPS outcalls
  • Deletes dfx.json, src/exchange-rates.did, src/lib.rs

Test plan

  • CI passes
  • icp network start -d && icp deploy && make test succeeds locally
  • make test output shows "PASS: canister deployed; XRC call rejected as expected on local replica"

🤖 Generated with Claude Code

Replaces dfx.json with icp.yaml, moves source to backend/, updates
Cargo.toml workspace, adds Makefile/rust-toolchain.toml, and adds CI
workflow using icp-dev-env-rust:1.0.0 with rust recipe v3.3.0.

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