Compiling to a single C file such that you can then compile the result via say clang is already supported (-ofmt=c). Automatic generation of C header files from your Zig library is WIP. The current recommend approach is to just write the C corresponding header files yourself, the issue mentions a couple of examples.
frankjr|1 year ago
https://github.com/ziglang/zig/issues/9698#issuecomment-9747...