wasmerio / wasmer-pack

MIT License
49 stars 5 forks source link

Importing host functions (and implementing them in Rust) #127

Open bilboquet opened 1 year ago

bilboquet commented 1 year ago

Hello,

I had a bit of hard time to understand the use of functions from the host from a wasm module, and how to implement them on the host side in Rust using .wai files.

I came to this example which I think is close to minimal: module host

What do you think of it? Could it help to improve the documentation ?

Kind regards