mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-14 14:24:32 +00:00
f6121c10f0
- re-enable Nim's cache globally - add a new "nimcache" subdir for the libraries - make sure Go doesn't try to link libnimbus.a in the dynamically linked wrapper example - always delete the static archive before recreating it - rename wrapper.nim/.h to libnimbus.nim/.h - better hygiene in libnimbus.h (include guards and C++ support) - remove MainnetBootnodes copy, since we do include "config.nim" after all
This folder contains an experimental C wrapper for using parts of the Nimbus code from C/Go in the Status console client:
https://github.com/status-im/status-console-client/
It serves mainly as a proof-of-concept for now - there are several unresolved issues surrounding threading, inter-language communication, callbacks etc.
To build the wrappers and the example programs, run from the top level directory:
make wrappers
Now you can run the example programs:
build/C_wrapper_example
build/go_wrapper_example
To build statically linked versions:
make wrappers-static