Getting started

We'll create a new cargo directory and add DarkFi to our Cargo.toml, like so:

[dependencies]
darkfi = {path = "../../", features = ["net", "rpc"]}
darkfi-serial = {path = "../../src/serial"}

Be sure to replace the path to DarkFi with the correct path for your setup.

Once that's done we can access DarkFi's net methods inside of dchat. We'll need a few more external libraries too, so add these dependencies:

async-std = "1.12.0"
async-trait = "0.1.58"
easy-parallel = "3.2.0"
smol = "1.2.5"
num_cpus = "1.14.0"

log = "0.4.17"
simplelog = "0.12.0"
url = "2.3.1"

serde_json = "1.0.87"
serde = {version = "1.0.147", features = ["derive"]}
toml = "0.5.9"