herolib_ai image-io feature breaks dx WASM builds #130

Open
opened 2026-04-19 10:16:13 +00:00 by zaelgohary · 0 comments
Member

herolib_ai on development past 3c2b35d0 (the ImageRef / image generation work, 633810f6 onwards) pulls a transitive image-io that dx 0.7.5 / krates 0.17.5 can't resolve. Every downstream WASM build via dx build panics:

internal error: entered unreachable code: unable to locate image-io for crate
  git+https://forge.ourworld.tf/lhumina_code/hero_lib.git?branch=development#herolib_ai@0.5.0
  features(["default", "usage"])

Current workaround in hero_os: [patch] block pointing at a local hero_lib checkout pinned at 3c2b35d0. Not portable.

Repro: check out hero_os, cargo update -p hero_archipelagos_messaging, dx build --package hero_os_app --web --features web --no-default-features.

Likely fix: feature-gate image-io behind a non-default feature in herolib_ai so WASM consumers that don't need image generation aren't forced to resolve it.

`herolib_ai` on `development` past `3c2b35d0` (the `ImageRef` / image generation work, `633810f6` onwards) pulls a transitive `image-io` that `dx 0.7.5` / `krates 0.17.5` can't resolve. Every downstream WASM build via `dx build` panics: ``` internal error: entered unreachable code: unable to locate image-io for crate git+https://forge.ourworld.tf/lhumina_code/hero_lib.git?branch=development#herolib_ai@0.5.0 features(["default", "usage"]) ``` Current workaround in hero_os: `[patch]` block pointing at a local hero_lib checkout pinned at `3c2b35d0`. Not portable. Repro: check out hero_os, `cargo update -p hero_archipelagos_messaging`, `dx build --package hero_os_app --web --features web --no-default-features`. Likely fix: feature-gate `image-io` behind a non-default feature in `herolib_ai` so WASM consumers that don't need image generation aren't forced to resolve it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_lib#130
No description provided.