aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 99d38f5539d881c28bbe84de143ebbf44dc2f5d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
mod config;
mod consul;
mod consul_actor;
mod diplonat;
mod fw;
mod fw_actor;
mod igd_actor;
mod messages;

use diplonat::Diplonat;
use log::*;

#[tokio::main]
async fn main() {
  pretty_env_logger::init();
  info!("Starting Diplonat");

  let mut diplo = Diplonat::new().await.expect("Setup failed");
  diplo.listen().await.expect("A runtime error occured");
}