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?
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.
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.
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 :)
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.
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!
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