blitz-research opened issue #6477:
I am trying to get the wasmtime c-api going, so that I can run the output of my wasm emitting compiler on native platforms as well as in the browser. Is this an appropriate use of wasmtime?
I have managed to build the simple hello.c example here...
https://github.com/bytecodealliance/wasmtime/blob/main/examples/hello.c
...with the prebuilt c-api release here...
...but there appear to be symbols missing from the wasm.h file in the download - at the least, wasm_engine_delete and wasm_store_delete, although I suspect there are more. I can still build hello.c, but I think only because C is evil like that (?) and the functions do actually exist in the libs so the code is there, just no prototypes in the headers.
Is this right? Technically 'it works' I guess, but I am very nervous to use wasmtime in this state as it feels like something isn't right.
I have also grepped the c-api crate in this repository and both symbols are only found in comments in include/doc-wasm.h. This repository doesn't even have a wasm.h file, or maybe it's generated or something?
Is c-api wasmtime pretty much over these days (or surely others would have encountered this) or am I just going crazy (always an option)?!?
Bye,
Mark
blitz-research edited issue #6477.
blitz-research edited issue #6477:
oops, fixed.
blitz-research edited issue #6477:
oops, found my issue.
blitz-research closed issue #6477:
oops, found my issue.
Last updated: Dec 23 2024 at 13:07 UTC