Stream: wit-bindgen

Topic: --derive-error


view this post on Zulip Ludea (Feb 02 2026 at 20:54):

Hi, I see https://component-model.bytecodealliance.org/language-support/building-a-simple-component/moonbit.html?highlight=error#--derive-error
So I create my own error variant.
I use wit-bindgen macro to generate binding, so how to use derive-error option with macro?

view this post on Zulip Alex Crichton (Feb 02 2026 at 21:08):

You might have better luck asking on github where the moonbit folks can be cc'd, I'm not sure if they're watching zulip here

view this post on Zulip Ludea (Feb 02 2026 at 23:38):

I didn't see it use moonbit (I don't know that it is).
Will do the impl myself


Last updated: Feb 24 2026 at 04:36 UTC