Stream: wasmtime

Topic: component implementation


view this post on Zulip Daniel Macovei (Jun 03 2022 at 18:00):

Does wasmtime use wat2wasm? Was looking at the component model and was wondering if it's being implemented first in wasm binary format or wat. I guess wasm component byte codes needs to exist in order for wat to compile to wasm?

view this post on Zulip Alex Crichton (Jun 03 2022 at 18:12):

Wasmtime doesn't use the wat2wasm tool from the wabt repository, no. Wasmtime instead uses the wasm-tools repository which has equivalent functionality in the wat and wast crates. We're implementing support for the component model in that repository for crates like the text ones, wasmparser, wasm-encoder, and wasmprinter

Low level tooling for WebAssembly in Rust. Contribute to bytecodealliance/wasm-tools development by creating an account on GitHub.

view this post on Zulip Daniel Macovei (Jun 18 2022 at 22:44):

Is there a best place to ask questions about wasm-tools?

view this post on Zulip Daniel Macovei (Jun 18 2022 at 23:51):

Specifically, when trying to run cargo check locally, so that I don't have to push to see why github actions fail... I see an error that I don't see in github actions

error[E0599]: no method named 'alias_outer_core_type' found for struct 'wasm_encoder::ModuleType' in the current scope
   --> crates/wasm-smith/src/component/encode.rs:137:44
    |
137 | ...                   enc_mod_ty.alias_outer_core_type(*count, *i);
    |                                  ^^^^^^^^^^^^^^^^^^^^^ method not found in 'wasm_encoder::ModuleType'

For more information about this error, try 'rustc --explain E0599'.

view this post on Zulip Peter Huene (Jun 19 2022 at 00:07):

Hi @Daniel Macovei . This is as good a place as any. Sometimes I find that cargo check goes off of stale data where cargo build is succeeding. If you delete your target dir and run cargo check, does that work?

view this post on Zulip Daniel Macovei (Jun 19 2022 at 00:09):

That was it. Thanks!


Last updated: Nov 22 2024 at 16:03 UTC