view src/main.rs @ 24:ed9eb9cfeb83 draft

Add some notes and fix mod statements
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 04 Dec 2016 16:32:49 +0100
parents 08d04d44f86d
children feacaba90cbe
line wrap: on
line source

extern crate futures;
#[macro_use]
extern crate tokio_core;
extern crate tokio_uds;
extern crate toml;
extern crate dns_lookup;

mod config;
mod dgram_stream;
mod dispatch;
mod error;
mod priority;
mod rule;

fn main() {
    let mut cfg = config::Config::default();
    cfg.general.bind_path = "./test_log_sock.sock".to_string();
    cfg.general.max_msg_len = 2048;

    dispatch::setup_and_run(cfg).unwrap();
}