nim-libp2p
nim-libp2p copied to clipboard
Running as C library
One of Nim strength is C compatibility, and with C compatibility comes compatibility with most other languages through FFI
It would be great to create a C library out of nim-libp2p, which can then be used from other languages (ie python, which is missing a libp2p implementation)
I see 2 alternatives to do so:
Macro based For instance genny. This project is used to generate python & other wrappers automatically, for instance pixie-python. However, genny lacks multiple features, and it's not clear how async integration should be done
Manually For instance, libwaku (examples in various languages: link)