Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.1 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.1 KB

IOTA Streams Application layer: C bindings

Instructions

Check out CMakeLists.txt and change the 3 options to your preference:

  • NO_STD: Enable no_std build, without iota_client (when ON, SYNC_CLIENT isnt supported)
  • IOTA_CLIENT: Enable transport via iota_client, otherwise it's going to be Bucket which can only be used for tests
  • STATIC: Build static library when ON, otherwise dynamic library
  • RELEASE: Build in release or debug mode (when ON, builds release, when OFF, build debug)

Edit your author and subscriber seeds in main.c

run cmake . in this folder

Then run make to build the rust code.

A binary will be generated which you can run depending on your STATIC setting

  • ON: iota_streams_c_static
  • OFF: libiota_streams_c.so(Unix), iota_streams_c.dll(Windows) and the executable iota_streams_c

You can then run the static build or the dynamic executable.

You can set the following environment variables to change this dynamically:

  • URL: Change the node we use to send and receive messages (Accepts string)
  • MWM: Change the MWM setting we use to do POW (Accepts integer)