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 I think (but am far from being an expert) that the way to include from another project is always via modules, and using installHeader should be the way to go. The documentation is lacking a bit, unfortunately. I mostly use https://github.com/allyourcodebase for reference and examples. The most current info I know is https://youtu.be/jy7w_7JZYyw. Is your code available somewhere?
All Your Codebase

...are belong to Ziguanas, but we'd also be delighted to give them back! - All Your Codebase

GitHub

@hauro I don't have it available right now but I could make a minimal example and put somewhere.

Asked the question and then left the house so I'll have to do it later. :)

@SonnyBonds I have profited from this exact strategy in the past. ;) Just ping me. Not sure if I can help, but I'll give it a go.