Skip to content

fix: package the embedded allocator wasm as a committed asset (unblocks 0.8.0 publish)#34

Merged
colinrozzi merged 1 commit into
mainfrom
fix-pack-alloc-asset
Jul 10, 2026
Merged

fix: package the embedded allocator wasm as a committed asset (unblocks 0.8.0 publish)#34
colinrozzi merged 1 commit into
mainfrom
fix-pack-alloc-asset

Conversation

@colinrozzi

Copy link
Copy Markdown
Owner

Package the embedded allocator wasm as a committed asset

Follow-up to #33 (PIC composition), required before 0.8.0 can publish.

The PIC runtime embeds packages/pack-alloc via include_bytes!, but the path was under target/ (gitignored) — so it's absent from the published crate, and cargo publish fails its verification build:

error: couldn't read .../pack_alloc_module.wasm: No such file or directory

(Verified locally with cargo package -p packr — fails before, passes after.)

Fix

  • Move it to a committed asset at assets/pack_alloc_module.wasm (an embedded runtime component, not a build artifact) and include_bytes! from there. Documented how to regenerate it.
  • Tests read the same asset.
  • CI: the check job no longer builds any wasm (compilation uses the committed asset); the test job builds only the echo-pic/hostcall-pic fixtures.
  • publish.yml: gains the fixture build before its test step (it was missing entirely — the release would have failed there too).

After this, cargo publish -p packr verify-builds clean and the .wasm is in the package tarball.

🤖 Generated with Claude Code

@colinrozzi colinrozzi enabled auto-merge (squash) July 10, 2026 13:46
The PIC runtime embeds packages/pack-alloc via include_bytes!, but that path was
under target/ (gitignored) — so it is absent from the published crate and cargo
publish fails its verification build (couldn't read pack_alloc_module.wasm). Move
it to a committed asset at assets/pack_alloc_module.wasm (an embedded runtime
component, not a build artifact) and include_bytes! from there; the tests read the
same asset. CI/publish no longer build pack-alloc (only the echo-pic/hostcall-pic
test fixtures), and the publish workflow gains that fixture build before its test
step.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@colinrozzi colinrozzi force-pushed the fix-pack-alloc-asset branch from edfba5e to bebcbbe Compare July 10, 2026 13:50
@colinrozzi colinrozzi merged commit 82ad4b0 into main Jul 10, 2026
2 checks passed
@colinrozzi colinrozzi mentioned this pull request Jul 10, 2026
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.

1 participant