Skip to content

Importing wasm module that uses wasmer-wasix #4718

Open
@fgrebenac

Description

@fgrebenac

Summary

Can't import wasm module that uses wasmer-wasix.

Additional details

I'm trying to import wasm module that uses tokio and reqwest crates from https://github.com/wasix-org using wasmer-wasix as explained in examples.
I compile wasm module with cargo wasix build --release and run the main Rust program with cargo run --release.
When I try to import it using WasiEnv from wasmer-wasix crate, I get the following error:
Error: Link(Import("wasix_32v1", "futex_wake", UnknownImport(Function(FunctionType { params: [I32, I32], results: [I32] }))))

It happens when I'm trying to create new Instance from import object.

Does anyone know why this happens and how can I fix it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions