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.64"
easy-parallel = "3.2.0"
smol = "1.3.0"
num_cpus = "1.15.0"

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

serde_json = "1.0.91"
serde = {version = "1.0.152", features = ["derive"]}
toml = "0.7.1"