3 ms·
If Zig can export C headers, you can easily generate the bindings out of them with CLangSharpPInvokeGenerator. https://github.com/dotnet/ClangSharp https://git
by neonsunset 2y ago
If Zig can export C headers, you can easily generate the bindings out of them with CLangSharpPInvokeGenerator.
https://github.com/dotnet/ClangSharp https://github.com/dotnet/ClangSharp
I strongly caution against WASM suggestions in a sibling comment - I’m not even sure if the author has actually done any C# at all, given how ridiculous it is.
- superfist 2y agoWhat is ridiculous in it?
- dgellow 2y agoAwesome, thanks for the link, that’s really useful! WASM is definitely a strange suggestion here, I didn’t take it seriously. I’m already using a C-compatible zig library approach. Some details of the use case here: https://news.ycombinator.com/item?id=41729059 https://news.ycombinator.com/item?id=41729059