This repository was archived by the owner on Apr 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Instructions
4
4
5
- Change ` src/constants.rs ` to your preferred node and settings. (default to localhost)
5
+ Check out ` CMakeLists.txt ` and change the 3 options to your preference:
6
+
7
+ - ` NO_STD ` : Enable no_std build, without iota_client (when ON, ` SYNC_CLIENT ` isnt supported)
8
+ - ` SYNC_CLIENT ` : Enable sync transport via iota_client, otherwise it's going to be Bucket which can only be used for tests
9
+ - ` STATIC ` : Build static library when ON, otherwise dynamic library
6
10
7
11
Edit your author and subscriber seeds in ` main.c `
8
12
9
- run ` ./make ` in this folder
13
+ run ` cmake . ` in this folder
14
+
15
+ Then run ` make ` to build the rust code.
10
16
11
- Then run ` cargo build --target-dir ./target ` to build the rust code.
17
+ A binary will be generated which you can run depending on your STATIC setting
18
+ - ON: ` iota_streams_c_static `
19
+ - OFF: ` libiota_streams_c.so ` (Unix), ` iota_streams_c.dll ` (Windows) and the executable ` iota_streams_c `
12
20
13
- A binary will be generated which you can run in ` ./target/streams `
21
+ You can then run the static build or the dynamic executable. Keep in mind that by default the code points to a node on ` http://localhost:14265 ` .
22
+ If this node doesnt exist, we will exit with an error immediately.
You can’t perform that action at this time.
0 commit comments