Stream: wasmtime

Topic: wasmtime::component


view this post on Zulip Elias (Feb 08 2023 at 17:12):

Hi all, a couple of months ago I was playing with wit. To generate the host code I was using wit_bindgen_host_wasmtime_rust which was moved to wasmtime recently. I'm trying to migrate my code to use wasmtime as well, but I am having a hard time with wasmtime::component::bindgen!. I'm able to produce the rust guest code with wit_bindgen_guest_rust::generate!, but the wasmtime macro (from V5.0.0) give me the following error:

expected `default`, `world` or `interface`, found keyword `default`

Should I be using another version of wasmtime?

view this post on Zulip Alex Crichton (Feb 08 2023 at 17:30):

yes you'll want to use the release-6.0.0 branch of Wasmtime or the main branch

view this post on Zulip Elias (Feb 08 2023 at 17:30):

Thank you :)


Last updated: Nov 22 2024 at 16:03 UTC