juancastillo0 / wasm_run

A WebAssembly executor for Dart and Flutter applications. Uses Rust's wasmtime optimizing runtime or wasmi interpreter to parse and execute WASM and WAT files.
https://juancastillo0.github.io/wasm_run/
MIT License
112 stars 10 forks source link

dart_wit_component error #60

Open liutao-liu opened 3 months ago

liutao-liu commented 3 months ago

https://github.com/juancastillo0/wasm_run/blob/0cedc87f82e2905235763c3bcbcb636ed1ca1a4c/packages/dart_wit_component/README.md?plain=1#L26

After this command is executed according to the readme, the following error is reported:

wasm-tools component new ./target/wasm32-wasi/debug/dart_wit_component.wasm -o dart_wit_component_component_wasi.wasm --adapt ./wasi_snapshot_preview1.wasm

error: decoding custom section component-type:dart-wit-generator

Caused by:
    0: invalid leading byte (0x6c) for component defined type (at offset 0xda)

my env: Ubuntu 20.04.6 LTS aarch64 repository branch: main