Skip to content

feat: add icp-cli support for rust/hello_world#1309

Merged
marc0olo merged 1 commit intomasterfrom
marc0olo/icp-cli-rust-hello-world
Feb 27, 2026
Merged

feat: add icp-cli support for rust/hello_world#1309
marc0olo merged 1 commit intomasterfrom
marc0olo/icp-cli-rust-hello-world

Conversation

@marc0olo
Copy link
Copy Markdown
Member

Summary

  • Add icp.yaml configuration for icp-cli alongside existing dfx.json
  • Migrate frontend from @dfinity/agent to @icp-sdk/core with @icp-sdk/bindgen for auto-generating TypeScript bindings from the Candid interface
  • Add backend/backend.did as a committed interface definition (used by bindgen at build time)
  • Frontend vite.config.js auto-detects icp-cli vs dfx for the dev server — both paths set the ic_env cookie for unified root key and canister ID handling
  • Use Vite's built-in loadEnv for safe build-time env var injection (scoped to CANISTER_* prefix)
  • Update README.md with overview, icp-cli instructions, and Candid regeneration guide
  • Replace BUILD.md with concise icp-cli version
  • Add **/frontend/src/bindings/ and Cargo.lock to .gitignore

- Add icp.yaml with @dfinity/rust and @dfinity/asset-canister recipes
- Migrate frontend from @dfinity/agent to @icp-sdk/core with
  @icp-sdk/bindgen for auto-generating TypeScript bindings
- Add backend/backend.did as committed interface definition for bindgen
- Frontend vite.config.js auto-detects icp-cli vs dfx for dev server,
  both paths set ic_env cookie for unified root key handling
- Use Vite loadEnv for safe build-time env var injection (dfx compat)
- Update README.md with overview, icp-cli instructions, and Candid
  regeneration guide
- Replace BUILD.md with concise icp-cli version
- Add **/frontend/src/bindings/ and Cargo.lock to .gitignore
@marc0olo marc0olo requested review from a team as code owners February 27, 2026 13:01
@marc0olo marc0olo merged commit 82dd165 into master Feb 27, 2026
7 checks passed
@marc0olo marc0olo deleted the marc0olo/icp-cli-rust-hello-world branch February 27, 2026 13:40
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.

2 participants