Skip to content

Commit 76b1a63

Browse files
authored
fix: bump candid-extractor 0.1.4 → 0.1.6 (ic0::cost_call support) (#39)
## Summary Bumps `candid-extractor` from 0.1.4 to 0.1.6 in both the `rust` and `all` images. ### Problem candid-extractor 0.1.4 fails to inspect WASM files that import `ic0::cost_call`, a new IC system API used by ic-cdk ≥ 0.19: ``` Error: unknown import: `ic0::cost_call` has not been defined ``` This causes `icp deploy` to fail at the Candid extraction step (step 3 of 3) for any canister compiled with ic-cdk 0.19+. ### Fix candid-extractor 0.1.6 adds support for `ic0::cost_call` and the other new IC system API imports introduced in recent ic-cdk versions. ### Verification Tested locally by building both image versions and running `icp deploy` + full `make test` against a canister using ic-cdk 0.19 + ic-ledger-types 0.16: - 0.1.4: ❌ `Error: unknown import: ic0::cost_call has not been defined` - 0.1.6: ✅ all tests pass ### Release versioning This is a patch release (`1.0.1`) — pure bug fix, no icp-cli version change, no API changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent d1bf5d9 commit 76b1a63

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For Motoko canister development.
2020

2121
```bash
2222
docker pull ghcr.io/dfinity/icp-dev-env-motoko:latest # always current
23-
docker pull ghcr.io/dfinity/icp-dev-env-motoko:1.0.0 # pinned
23+
docker pull ghcr.io/dfinity/icp-dev-env-motoko:1.0.1 # pinned
2424
```
2525

2626
### `icp-dev-env-rust`
@@ -31,7 +31,7 @@ For Rust canister development.
3131
|---|---|
3232
| [icp-cli](https://cli.internetcomputer.org) | 1.0.0 |
3333
| [ic-wasm](https://github.com/dfinity/ic-wasm) | 0.9.11 |
34-
| [candid-extractor](https://github.com/dfinity/cdk-rs) | 0.1.4 |
34+
| [candid-extractor](https://github.com/dfinity/cdk-rs) | 0.1.6 |
3535
| [yq](https://github.com/mikefarah/yq) | 4.53.3 |
3636
| Rust | 1.95.0 |
3737
| wasm32-unknown-unknown target ||
@@ -40,7 +40,7 @@ For Rust canister development.
4040

4141
```bash
4242
docker pull ghcr.io/dfinity/icp-dev-env-rust:latest # always current
43-
docker pull ghcr.io/dfinity/icp-dev-env-rust:1.0.0 # pinned
43+
docker pull ghcr.io/dfinity/icp-dev-env-rust:1.0.1 # pinned
4444
```
4545

4646
### `icp-dev-env-all`
@@ -51,7 +51,7 @@ Combined Motoko and Rust development environment. Use this when your project inc
5151
|---|---|
5252
| [icp-cli](https://cli.internetcomputer.org) | 1.0.0 |
5353
| [ic-wasm](https://github.com/dfinity/ic-wasm) | 0.9.11 |
54-
| [candid-extractor](https://github.com/dfinity/cdk-rs) | 0.1.4 |
54+
| [candid-extractor](https://github.com/dfinity/cdk-rs) | 0.1.6 |
5555
| [mops](https://mops.one) | 2.14.1 |
5656
| moc | installed per-project via `mops install` |
5757
| [yq](https://github.com/mikefarah/yq) | 4.53.3 |
@@ -62,7 +62,7 @@ Combined Motoko and Rust development environment. Use this when your project inc
6262

6363
```bash
6464
docker pull ghcr.io/dfinity/icp-dev-env-all:latest # always current
65-
docker pull ghcr.io/dfinity/icp-dev-env-all:1.0.0 # pinned
65+
docker pull ghcr.io/dfinity/icp-dev-env-all:1.0.1 # pinned
6666
```
6767

6868
## Usage

all/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG NVM_VERSION=v0.40.1
55
ARG PNPM_VERSION=11.4.0
66
ARG ICP_CLI_VERSION=1.0.0
77
ARG IC_WASM_VERSION=0.9.11
8-
ARG CANDID_EXTRACTOR_VERSION=0.1.4
8+
ARG CANDID_EXTRACTOR_VERSION=0.1.6
99
ARG IC_MOPS_VERSION=2.14.1
1010
ARG YQ_VERSION=4.53.3
1111
ARG YQ_SHA256_AMD64=fa52a4e758c63d38299163fbdd1edfb4c4963247918bf9c1c5d31d84789eded4

rust/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG NVM_VERSION=v0.40.1
55
ARG PNPM_VERSION=11.4.0
66
ARG ICP_CLI_VERSION=1.0.0
77
ARG IC_WASM_VERSION=0.9.11
8-
ARG CANDID_EXTRACTOR_VERSION=0.1.4
8+
ARG CANDID_EXTRACTOR_VERSION=0.1.6
99
ARG YQ_VERSION=4.53.3
1010
ARG YQ_SHA256_AMD64=fa52a4e758c63d38299163fbdd1edfb4c4963247918bf9c1c5d31d84789eded4
1111
ARG YQ_SHA256_ARM64=578648e463a11c1b6db6010cbf41eafed6bee79466fcffa1bb446672cf7945ea

0 commit comments

Comments
 (0)