Stream: cargo-component

Topic: cargo component new missing import


view this post on Zulip David Justice (Oct 05 2023 at 17:50):

Not sure if folks are concerned about this or if it is a transitory thing, but running.

cargo component new my-project
cd my-project
cargo component build
# cd into wasmtime main branch at 631aa120c (head)
cargo run -- run --wasm component-model ../my-project/target/wasm32-wasi/debug/my-project.wasm
warning: `cranelift-codegen` (lib) generated 1 warning (run `cargo fix --lib -p cranelift-codegen` to apply 1 suggestion)
    Finished dev [unoptimized + debuginfo] target(s) in 0.87s
     Running `target/debug/wasmtime run --wasm component-model ../my-project/target/wasm32-wasi/debug/my-project.wasm`
Error: failed to run main module `../my-project/target/wasm32-wasi/debug/my-project.wasm`

Caused by:
    0: import `wasi:io/streams` has the wrong type
    1: instance export `drop-input-stream` has the wrong type
    2: expected func found nothing

Last updated: Oct 23 2024 at 20:03 UTC