equal
deleted
inserted
replaced
1 #![allow(unused_imports)] |
1 #![allow(unused_imports)] |
2 #![deny(bare_trait_objects)] |
2 #![deny(bare_trait_objects)] |
|
3 #![feature(rust_2018_preview)] |
3 |
4 |
4 extern crate rand; |
5 extern crate rand; |
5 extern crate mio; |
6 extern crate mio; |
6 extern crate slab; |
7 extern crate slab; |
7 extern crate netbuf; |
8 extern crate netbuf; |
25 |
26 |
26 mod utils; |
27 mod utils; |
27 mod server; |
28 mod server; |
28 mod protocol; |
29 mod protocol; |
29 |
30 |
30 use server::network::NetworkLayer; |
31 use crate::server::network::NetworkLayer; |
31 use std::time::Duration; |
32 use std::time::Duration; |
32 |
33 |
33 fn main() { |
34 fn main() { |
34 env_logger::init().unwrap(); |
35 env_logger::init().unwrap(); |
35 |
36 |