Stream: wit-bindgen

Topic: using preview2 wasi interfaces


view this post on Zulip John Hughes (Jul 12 2023 at 09:57):

I'm experimenting with building Rust preview2 components. What's the current story around using wasi interfaces in my component wit's? I.e., I want to import wasi:io/streams in my client crate, which would mean that wit-bindgen needs to have access to these wits somewhere.

view this post on Zulip Dan Gohman (Jul 12 2023 at 11:47):

There's a tool called wit-deps which can help manage these. You create a wit/deps.toml file to tell it where to find the upstream wits.

WIT dependency manager. Contribute to bytecodealliance/wit-deps development by creating an account on GitHub.

view this post on Zulip Dan Gohman (Jul 12 2023 at 11:48):

In the future, interfaces like these will be published on a warg registry and the tools will be able to automatically query it.


Last updated: Dec 23 2024 at 12:05 UTC