Stream: general

Topic: ✔ Tool to verify WIT.


view this post on Zulip Damian Reeves (Apr 04 2024 at 18:07):

What tools are available for me to verify that I have valid WIT?

view this post on Zulip fitzgen (he/him) (Apr 04 2024 at 18:10):

I think wasm-tools component wit has relevant bits

https://github.com/bytecodealliance/wasm-tools

CLI and Rust libraries for low-level manipulation of WebAssembly modules - GitHub - bytecodealliance/wasm-tools: CLI and Rust libraries for low-level manipulation of WebAssembly modules

view this post on Zulip Damian Reeves (Apr 04 2024 at 18:11):

Thanks I'll take a look

view this post on Zulip fitzgen (he/him) (Apr 04 2024 at 18:11):

if you find it doesn't have the functionality you're looking for, definitely file an issue!

view this post on Zulip Damian Reeves (Apr 04 2024 at 18:16):

Yeah worked like a charm... I had a feeling I was doing something wrong but the VS Code tooling gives syntax highlighting but doesn't highlight problems

view this post on Zulip Ramon Klass (Apr 04 2024 at 18:18):

I wonder, has anyone thought about a wit-lsp? :)

view this post on Zulip Damian Reeves (Apr 04 2024 at 18:21):

That would be nice... I'd like to think that fast forward 2 months from now, I'll have the requisite skills to build such a thing.

view this post on Zulip Peter Huene (Apr 04 2024 at 18:29):

I'm working on wac-lsp as a side project (it's been on hold the past six weeks due to time constraints) and since WAC is a superset of WIT, there's no reason it can't hook into supplying services for WIT files either. I intend to keep hacking on it and show it off once it's in a useable state

view this post on Zulip Damian Reeves (Apr 04 2024 at 18:30):

That is cool... I just learned about WAC yesterday after watching the WASM I/O videos. I think WAC and WIT in the same lsp makes sense.
Curious if you have any recommendations on how to best groc WAC?

view this post on Zulip Peter Huene (Apr 04 2024 at 18:40):

There's no good user-facing documentation for it yet outside of the LANGUAGE.md in the repo (which isn't a walkthrough by any means), but we hope to produce more documentation, examples, and walkthroughs in the near future; we're also transferring the repo to the BA shortly and are in the process of onboarding more maintainers so that hopefully improvements will be made at a more rapid pace

view this post on Zulip Notification Bot (Apr 04 2024 at 19:12):

Damian Reeves has marked this topic as resolved.


Last updated: Nov 22 2024 at 16:03 UTC