It might be worth checking if your compiler supports #embed
, that would remove the need for C source generation and you'd be back to writing a Swift package. See this blog post about #embed, its a C23 support but its very likely compilers will just back port it as an extension.
1 Like