Out of all non-C languages Zig has hands down the best interoperability with it, yet people still write wrappers for libraries. That's because C is C and C has void pointers and other "features", that we'd like to not see in our code at all. In this post I show how I handle writing wrappers, that ensure type safety and are as simple as possible.
FFI and C interop and how to do it safely from Zig