comparison 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
comparison
equal deleted inserted replaced
630:7e9041534891 631:c57821a60e51
1 #![feature(proc_macro, conservative_impl_trait, generators)] 1 #![feature(proc_macro, conservative_impl_trait, generators)]
2 #![feature(await_macro, async_await, futures_api)]
2 3
3 4
4 extern crate tokio_core; 5 #[macro_use]
5 extern crate futures_await as futures; 6 extern crate tokio;
7 #[macro_use]
8 extern crate futures;
9
6 #[macro_use] 10 #[macro_use]
7 extern crate log; 11 extern crate log;
8 extern crate env_logger; 12 extern crate env_logger;
9 extern crate rustc_serialize; 13 extern crate rustc_serialize;
10 extern crate time; 14 extern crate time;
24 28
25 extern crate docopt; 29 extern crate docopt;
26 30
27 use std::io; 31 use std::io;
28 32
29 use tokio_core::reactor::Core; 33 use tokio_core::reactor:: Core;
30 use futures::{Stream,Sink,Future}; 34 use futures::{Stream,Sink,Future};
31 use futures::sync::{mpsc}; 35 use futures::sync::{mpsc};
32 use sensor::Sensor; 36 use sensor::Sensor;
33 37
34 mod config; 38 mod config;