Skip to content

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

Open
scothis wants to merge 1 commit into
bytecodealliance:mainfrom
scothis:unknown-cabi_realloc
Open

fix(rust): restore cabi_realloc for wasm32-unknown-unknown#1677
scothis wants to merge 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.

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