Stream: wit-bindgen

Topic: Running the codegen tests


view this post on Zulip Elmer Bulthuis (Jun 03 2025 at 07:41):

I think I found a bug in wit bindgen! Now I made a test .wit file for it, put it in the tests/codegen folder. Now I would love to run it... But, how?

i tried cargo test -p wit-bindgen-rust but it doesn't seem or work! Also tried some other things, like cargo test --all, this does something but does not seem to run the codegen tests.

How can I run the codegen tests?

afbeelding.png

view this post on Zulip Victor Adossi (Jun 03 2025 at 08:03):

Hey @Elmer Bulthuis sorry this was a bit confusing/hard to grok -- I assume you already saw the testing docs?

Another spot that might help you here is the CI Config

If you wouldn't mind making a contribution to the testing docs, a concrete example IMO would make it so much easier for others that find the same sharp edge you did.

A language binding generator for WebAssembly interface types - bytecodealliance/wit-bindgen
A language binding generator for WebAssembly interface types - bytecodealliance/wit-bindgen

view this post on Zulip Elmer Bulthuis (Jun 03 2025 at 08:06):

Hi! Thanks for the quick reply :-)!

I have been looking a these links and tried most of it yesterday. I'll have a closer look at it, also the ci pipelines and if i manage to get the thing running I will definetely make a contribution :tada: .

Have a nice day.

view this post on Zulip Victor Adossi (Jun 03 2025 at 08:11):

No worries! Please let us know if you run into more weird spots/anything doesn't actually work. We get to find out where the docs/code are hard to use when people make issues :)

view this post on Zulip Elmer Bulthuis (Jun 03 2025 at 08:12):

I got them running!

Made a pr with the command -> https://github.com/bytecodealliance/wit-bindgen/pull/1310 <-.

Thanks for the help!

Readlly excited about wit bindgen, awesome project <3.

We read every piece of feedback, and take your input very seriously.

view this post on Zulip Victor Adossi (Jun 03 2025 at 10:26):

That's amazing, thanks so much for making it better as well!

Yeah wit-bindgen is basically the bridge to an entirely new Wasm world for all the languages it supports. Ecosystem needs more wit-bindgen!

view this post on Zulip Elmer Bulthuis (Jun 03 2025 at 10:33):

Yup! Very excited about wit and everything that comes wit (muhahaha) it. This stuff is revolutionary!


Last updated: Dec 06 2025 at 07:03 UTC