I've got a Zig question if anyone out there happens to know.

I'm wrapping the wgpu_native library into a zig build system package like in the screenshot. This works and can be consumed by another project.

However, I want to _also_ package a file (include/webgpu/webgpu.h) along for the consuming project to be able to use. (I have another wrapped C library that uses webgpu as well that needs to include that header when building.) How would I do that?

#zig #ziglang

I've tried using lib.installHeader(...) which maybe works, but I can't figure out how to find/use it in the consuming project.
@SonnyBonds this is what I bounced off of with Zig. Lots of cool things “in flight” still and I need to wait until the dust settles on things like this.

@photex I've fought enough with build systems, both others' and my own, that I don't feel like this is a deal breaker as such. On the contrary it can do a lot of things natively that often is more of hacks in other stuff.

That said it's not very well documented, and there are not that many advanced examples available. But yeah, it's changing a lot over time so a 2 year old blog post describing something may be wrong today. I can totally understand if that puts you off.