Mercurial > lbo > hg > syslog
changeset 5:ec89c5375b21 draft
Implement barebones main()
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 26 Nov 2016 11:56:58 +0100 |
parents | ed83b57d6d59 |
children | fee9e63c0cc4 |
files | src/main.rs |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.rs Sat Nov 26 11:56:44 2016 +0100 +++ b/src/main.rs Sat Nov 26 11:56:58 2016 +0100 @@ -1,5 +1,16 @@ +extern crate futures; +#[macro_use] +extern crate tokio_core; +extern crate tokio_uds; + +mod config; +mod dispatch; mod priority; +mod unix_datagram_stream; fn main() { - println!("Hello, world!"); + let mut cfg = config::Config::default(); + cfg.bind_path = "./test_log_sock.sock".to_string(); + + dispatch::setup_and_run(cfg); }