chore: migrate rust/query_stats to icp-cli#1400
Draft
marc0olo wants to merge 1 commit into
Draft
Conversation
- Replace dfx.json with icp.yaml using @dfinity/rust@v3.3.0 recipe - Move src/lib.rs to backend/lib.rs; add workspace Cargo.toml - Update ic-cdk to 0.20 and replace deprecated ic_cdk::api::management_canister with ic-cdk-management-canister = "0.1.1" - Add Makefile with test and test-stats targets (fast API check + polling loop) - Add rust-toolchain.toml with wasm32-unknown-unknown target - Update README with icp-cli prerequisites and query stats explanation - Add rust-query_stats job to .github/workflows/query_stats.yml - Delete dfx.json, BUILD.md, query-stats.did, .devcontainer/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dfx.jsonwithicp.yamlusing@dfinity/rust@v3.3.0recipe (nopackagefield, backend-only)src/lib.rs→backend/lib.rs; restructure as workspace withbackend/memberic-cdkto0.20and replace deprecatedic_cdk::api::management_canisterwithic-cdk-management-canister = "0.1.1"Makefilewithtest(fast API shape check) andtest-stats(polling loop for non-zero stats) targetsrust-toolchain.tomlwithwasm32-unknown-unknowntargetREADME.mdwith icp-cli prerequisites and preserve the query stats aggregation explanation from the Motoko variantrust-query_statsjob to.github/workflows/query_stats.ymlusingicp-dev-env-rust:1.0.0dfx.json,BUILD.md,query-stats.did,.devcontainer/Test plan
icp network start -d && icp deploy && make testpasses (API shape check)make test-statspolls and verifies non-zero query stats after ~13 load queriesrust-query_statsjob passes on push🤖 Generated with Claude Code