Stream: general

Topic: [wit-bindgen] Dlang bindings


view this post on Zulip QuantumSegfault (Mar 06 2026 at 20:12):

Hello! I've begun work on a wit-bindgen generator for D.

What is/are the process and requirements for upstreaming new language (guest) bindings? Is the main wit-bindgen even looking to support more languages, or is it expected that most languages will be maintained out-of-tree?

view this post on Zulip Alex Crichton (Mar 09 2026 at 14:28):

Not much process currently, mostly a PR. If you'd like I think it'd be reasonable to add, we don't currently have any sort of strict guidelines or such of what can/can't be added. If the generation process looks similar to the rest of the languages I think it's reasonable to add, but if the generation process is entirely different it might make sense to live externally.

Additionally I'd request that the impact on CI would be somewhat minimal (e.g. not adding 20+ minutes to each run), but my hunch is that D wouldn't fall into that category and would be reasonable to add.

Would you be interested in sending a PR and we can review from there?

view this post on Zulip QuantumSegfault (Mar 09 2026 at 17:28):

Sounds good!

Regarding CI...it shouldn't be too expensive. Similar to C++ (compiled with Clang) I'd imagine. But we'll see how it works out in practice.

It's not quite in a PR ready state, but I guess, there's no reason I can't open a Draft PR for visibility. I'll do that once I got the basics of the type system worked out.

I'm new to Rust, so reviews on the generator code itself will be helpful.

view this post on Zulip Alex Crichton (Mar 09 2026 at 17:34):

Sounds good! FWIW I at least don't personally review per generator code too carefully except for languages I'm familiar with, and this unfortunately doesn't include D for me. If you're curious about any rust idioms anywhere feel free to highlight in a PR and I'd be more than happy to dig in and answer


Last updated: Mar 23 2026 at 16:19 UTC