Skip to content

fix(rust): restore cabi_realloc for wasm32-unknown-unknown - #1677

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
scothis:unknown-cabi_realloc
Aug 6, 2026
Merged

fix(rust): restore cabi_realloc for wasm32-unknown-unknown#1677
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
scothis:unknown-cabi_realloc

Conversation

@scothis

@scothis scothis commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

cabi_realloc was switched to only be added for p1 targets instead of not being added for p2 targets in #1663. This causes modules built with wasm32-unknown-unknown and then enriched into a component with wasm-tools component new to fail.

`cabi_realloc` was switched to only be added for `p1` targets instead of
not being added for `p2` targets. This causes modules built with
`wasm32-unknown-unknown` and then enriched into a component with
`wasm-tools component new` to fail.

Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis

scothis commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

I plan to switch to wasm32-component once it becomes available, but if there is a better way to create a component that doesn't need wasi, please let me know.

@alexcrichton
alexcrichton added this pull request to the merge queue Aug 6, 2026
Merged via the queue into bytecodealliance:main with commit d92cfd3 Aug 6, 2026
29 checks passed
@scothis
scothis deleted the unknown-cabi_realloc branch August 6, 2026 14:50
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