Hi,
I'm new to Nim.
I'm developing a multi-platform desktop app (Windows/Linux/Mac) that would be running at my clients' PCs and I'm considering to connect to external servers (under my control) using zero trust networking via OpenZiti from inside my app:
I haven't found any OpenZiti usage or module in Nim lang.
How hard would it be for a novice Nim developer (like me), who never developed in C, to use Nim's FFI to C to use OpenZiti C SDK?
Any hints are welcome :)
Hey Clonk,
thanks for the tips!!!
futhark looks like the thing to try first.
This opened the whole universe for me :)
Now I need to learn how do I statically include OpenZiti C lib into Nim executable.
I would recommend Futhark as well. Manual wrapping is tricky to get right even if you know C, and c2nim is fairly unmaintained and can create some bad results on certain inputs (granted for a header you might be fine). To put it like this, I wrote Futhark because I was tired of wrestling with manual wrappers and c2nim.
The static linking should be fairly easy, although easier still might be to just ship a dynamic library. Depend on OpenZdti though, haven't looked at it.