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?
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
Is there a best place to ask questions about wasm-tools?
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'.
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?
That was it. Thanks!
Last updated: Dec 23 2024 at 13:07 UTC