gameServer2/src/main.rs
changeset 13666 09f4a30e50cc
parent 13529 662f7df89d06
child 13796 59ea2403f62d
equal deleted inserted replaced
13665:5664650befcd 13666:09f4a30e50cc
     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