nim-libp2p icon indicating copy to clipboard operation
nim-libp2p copied to clipboard

Running as C library

Open Menduist opened this issue 9 months ago • 1 comments

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)

Menduist avatar Oct 10 '23 14:10 Menduist