Skip to content

Latest commit

 

History

History
41 lines (37 loc) · 1.08 KB

File metadata and controls

41 lines (37 loc) · 1.08 KB

rust-template

Template repository for Rust projects with sxutil

Run

You should run Synerex Nodeserv and Synerex Server before running commands below.

DemandSubscriber (Service)

It will subscribe demand message from DemandNotifier and propse supply.

cargo run -- -m subscribe -t Demand

SupplySubscriber (Client)

It will subscribe supply message from SupplyNotifier and propose demand.

cargo run -- -m subscribe -t Supply

DemandNotifier (Client)

It will notify demand message and subscribe supply from DemandSubscriber. Note: Please start DemandSubscriber before starting this.

cargo run -- -m notify -t Demand

SupplyNotifier (Service)

It will notify supply message and subscribe demand from SupplySubscriber. Note: Please start SupplySubscriber before starting this.

cargo run -- -m notify -t Supply

Build

for Development

cargo build
ls target/debug

for Release

cargo rustc --release -- -C link-args=-Wl,-x,-S
ls target/release