Stream: wit-bindgen

Topic: wit-parser crate


view this post on Zulip Jeff Charles (Sep 19 2022 at 17:49):

:wave: I'm looking at options for parsing a WIT file. I found a wit-parser crate on crates.io but it looks like it hasn't been updated in a couple years. I noticed there's a wit-parser crate in wit-bindgen but I'm guessing that hasn't been published anywhere. Is there a preferred way to get a structured representation of a WIT file in Rust?

A language binding generator for WebAssembly interface types - wit-bindgen/crates/wit-parser at main · bytecodealliance/wit-bindgen

view this post on Zulip Robin Brown (Sep 20 2022 at 19:42):

I think the goal should be for the wit-bindgen project to push the wit-parser crate to crates.io
Want to file an issue for that against the repo?

view this post on Zulip Jeff Charles (Sep 20 2022 at 21:26):

I opened https://github.com/bytecodealliance/wit-bindgen/issues/317 to suggest that approach.

I need a crate for getting a structured representation of a WIT file in Rust. This project includes a wit-parser crate that would be very helpful for that purpose. I noticed there's an existing...

view this post on Zulip Robin Brown (Sep 21 2022 at 17:39):

I see Alex closed your issue since the project isn't stable enough to have people relying on the parser crate. That makes sense, especially given that it will need to support the .world syntax and the output probably doesn't make sense to general consumers right now. At some point in the future when it is more stable, you can make a new issue referring to this one or get the old one re-opened.

view this post on Zulip Alex Crichton (Sep 21 2022 at 18:00):

Yes and to clarify again, the intent is to publish at some point, but publication is, at least in my mind, a signal of stability which is not currently present


Last updated: Dec 23 2024 at 13:07 UTC