-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Are there details on why the export tags for cabi_realloc were removed in 88cdc52
This still seems relevant when targeting wasip1 and using the wasi adapters ( such as the reactor adapter ) to build a component. I have tested this by adding my own cabi_realloc function and using the export tags, then converting to a wasip2 component using the wasmtime adapters.
GOOS=wasip1 GOARCH=wasm go build -o main.wasm main.go
wasm-tools component embed --world word ./wit/lex.wit main.wasm -o main.embed.wasm
wasm-tools component new -o main.component.wasm --adapt wasi_snapshot_preview1=wasi_snapshot_preview1.reactor.wasm main.embed.wasm
experimenting here https://github.com/elewis787/lex
I believe this relates to the work at tinygo-org/tinygo#4451 and golang/go#65199 but hope for some details.
My goal is to use the wit bindings for exported functions and build a wasip2 reactor component in tinygo or go.
Metadata
Metadata
Assignees
Labels
No labels