Hi, Is it possible to use the old markdown demo for interface types (available at https://github.com/bytecodealliance/wasmtime-demos/tree/main/markdown) with wit-bindgen
? I would like to use the WebAssembly module in a python runtime with wasmer
but I am unsure how the linkage with bindings.py
would work after running wit-bindgen wasmtime-py --import render.wit
. I have posted a question about this on StackOverflow where I give a bit more details: https://stackoverflow.com/questions/72758778/running-markdown-example-with-wit-bindgen
Wit-bindgen doesn't have wasmer support. The command you tried to run exclusively works with the python bindings of wasmtime, not with those of wasmer.
I had them mixed up, sorry, my intention was to use wasmtime in the following way:
import wasmtime.loader
import markdown
but this gives me an error as explained in the post. Could you point me towards the documentation/example for using python bindings with wasmtime
?
The old wasmtime demos for interface types probably don't work anywhere any more (interface types and the component model have changed significantly since then). For documentation on the Python bindings for wasmtime I'd recommend reading over the wasmtime-py repository
Last updated: Nov 22 2024 at 17:03 UTC