Stream: general

Topic: Markdown example with wit-bindgen


view this post on Zulip Kevin (Jun 26 2022 at 06:18):

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

Demos for Wasmtime usage and WASI content. Contribute to bytecodealliance/wasmtime-demos development by creating an account on GitHub.
The WebAssembly Interface Types was removed in favor of wit-bindgen as discussed here: https://github.com/bytecodealliance/wasmtime/issues/677#issuecomment-1024087373. I am trying to compile the old

view this post on Zulip bjorn3 (Jun 26 2022 at 10:32):

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.

view this post on Zulip Kevin (Jun 26 2022 at 11:47):

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?

view this post on Zulip Alex Crichton (Jun 27 2022 at 16:12):

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

Python WebAssembly runtime powered by Wasmtime. Contribute to bytecodealliance/wasmtime-py development by creating an account on GitHub.

Last updated: Nov 22 2024 at 17:03 UTC