Mercurial > lbo > hg > syslog
view src/main.rs @ 18:08d04d44f86d draft
Add toml and dns_lookup crates.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 03 Dec 2016 14:17:30 +0100 |
parents | d680d7f1bec8 |
children | ed9eb9cfeb83 |
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; 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(); }