Mercurial > templog
diff rust/src/main.rs @ 631:c57821a60e51 rust
rust work in progress ?
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 06 Jul 2019 18:28:34 +0800 |
parents | d5075136442f |
children | bde302def78e |
line wrap: on
line diff
--- a/rust/src/main.rs Fri Apr 19 13:58:56 2019 +0800 +++ b/rust/src/main.rs Sat Jul 06 18:28:34 2019 +0800 @@ -1,8 +1,12 @@ #![feature(proc_macro, conservative_impl_trait, generators)] +#![feature(await_macro, async_await, futures_api)] -extern crate tokio_core; -extern crate futures_await as futures; +#[macro_use] +extern crate tokio; +#[macro_use] +extern crate futures; + #[macro_use] extern crate log; extern crate env_logger; @@ -26,7 +30,7 @@ use std::io; -use tokio_core::reactor::Core; +use tokio_core::reactor:: Core; use futures::{Stream,Sink,Future}; use futures::sync::{mpsc}; use sensor::Sensor;