aboutsummaryrefslogblamecommitdiff
path: root/src/main.rs
blob: 4c4b469c0cd267dca14cca68ea07db3aa8e329e7 (plain) (tree)
1
2
3
4
5
6
7
8
9
           
           
                 
             
                
       
             

              
 
           
                       
 

                 

                             
 

                                                               
 
mod config;
mod consul;
mod consul_actor;
mod diplonat;
mod environment;
mod fw;
mod fw_actor;
mod igd_actor;
mod messages;

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

#[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");
}