This is fascinating stuff – Zig is used to cross compile CGO code in Go projects:
In the second post, native SQLite CGO code is cross-compiled using Zig:
I’ve been using the modern-C SQLite port in SIOT, but this may open up the option to use the native port if needed.
Pocketbase does something really neat – if CGO is enabled, native sqlite is used, otherwise the modern-C translation.
Seems there are tradeoffs – the following is from a SQLite discord group: