# Ic-utils / ic-agent v0.33.0 will not compile

**URL:** <https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461>\
**Category:** Rust\
**Created:** [February 9, 2024, 2:57pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461 "2024-02-09T14:57:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon98822045](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anon98822045](https://forum.dfinity.org/u/anon98822045)\
**Post date:** [February 9, 2024, 2:57pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/1 "2024-02-09T14:57:27Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/9/97c5b06b215d6896335e73b16628d59f164c6a80.png)

@anon74414410

I can’t work out why this won’t compile. It’s something to do with the target-family = wasm but I can’t work it out.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/b/b4a241cc6efb26540dbdca38fb0f23c1a5fd60e7.png)

I’m going through and putting all the nice new ic-utils builders in our code, really like it so far.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![hpeebles](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/hpeebles/32/1400_2.png) [@hpeebles](https://forum.dfinity.org/u/hpeebles)\
**Post date:** [February 9, 2024, 3:51pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/2 "2024-02-09T15:51:19Z")

</div>

The match statement has no match on `Some(_)` if targeting wasm but without the wasm-bindgen feature enabled.

I vaguely remember this happening in a previous version too.

If you enable the wasm-bindgen feature it should work (if that’s an option for you).

---

<div class="post-metadata">

**Author:** ![anon98822045](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anon98822045](https://forum.dfinity.org/u/anon98822045)\
**Post date:** [February 9, 2024, 4:06pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/3 "2024-02-09T16:06:32Z")

</div>

```auto
ic-agent = { version = "0.33.0", features = ["wasm-bindgen"] }
ic-utils = "0.33.0"

```

this just gives me the same error message. Not sure what to do here as its still failing at installing the ic-agent. I don’t actually use the agent, just the utils wrapper.

---

<div class="post-metadata">

**Author:** ![AdamS](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/adams/32/5248_2.png) [@AdamS](https://forum.dfinity.org/u/AdamS)\
**Post date:** [February 9, 2024, 9:28pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/4 "2024-02-09T21:28:16Z")

</div>

The wasm-bindgen feature should be the solution. Can you double check that it was applied properly (e.g. file saved)?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gabriel/32/546_2.png) [@Gabriel](https://forum.dfinity.org/u/Gabriel)\
**Post date:** [February 10, 2024, 8:45am UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/5 "2024-02-10T08:45:59Z")

</div>

Hey @AdamS

Both @anon98822045 and I tried that and we’re getting the same error.

This are our IC depds.

> candid = “0.10.3”  
> ic-cdk = “0.12.1”  
> ic-cdk-macros = “0.8.4”  
> ic-stable-structures = “0.6.2”  
> ic-utils = “0.33.0”  
> ic-agent = { version = “0.33.0”, features = [“wasm-bindgen”] }

---

<div class="post-metadata">

**Author:** ![anon98822045](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anon98822045](https://forum.dfinity.org/u/anon98822045)\
**Post date:** [February 10, 2024, 12:55pm UTC](https://forum.dfinity.org/t/ic-utils-ic-agent-v0-33-0-will-not-compile/27461/6 "2024-02-10T12:55:39Z")

</div>

That’s just one of many combinations I’ve tried!

Just to clarify, we’re only using ic-utils not the agent. The ic-agent above was just there to try and test but nothing we’ve tried so far works.

EDIT : all sorted dont worry, we were using the wrong package. Wasn’t obvious that the new InstallCodeBuilder and CreateCanisterBuilder aren’t designed to be run in a canister.
