Stream: wasi

Topic: wit.md vs abi.md files


view this post on Zulip Alexandru Ene (May 11 2022 at 16:24):

I was looking to write the threads-api proposal in a bit more detail and I noticed there are 2 files included with the other proposals: .wit.md and a .abi.md file (also present in the repo that's suggested to clone for a new proposal.

To me it seems like both files contain the same information. Was there a transition from one to the other? It's unclear if both are required or just one is sufficient.

Example repo: https://github.com/WebAssembly/wasi-filesystem

Filesystem API for WASI. Contribute to WebAssembly/wasi-filesystem development by creating an account on GitHub.

view this post on Zulip Dan Gohman (May 11 2022 at 16:27):

The .abi.md file is generated from the .wit.md file, with wit-abi

WASI tools. Contribute to WebAssembly/wasi-tools development by creating an account on GitHub.

view this post on Zulip Alexandru Ene (May 11 2022 at 16:29):

Alright, that makes sense now :grinning:

view this post on Zulip Alexandru Ene (May 11 2022 at 16:32):

I'm glad there's a way to generate those, i found it strange to put size / alignment by hand :grinning:


Last updated: Dec 23 2024 at 12:05 UTC