comparison rust/src/fridge.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 e1b5938de122
children bde302def78e
comparison
equal deleted inserted replaced
630:7e9041534891 631:c57821a60e51
1 extern crate futures;
2 extern crate tokio_core;
3 #[cfg(target_os = "linux")] 1 #[cfg(target_os = "linux")]
4 extern crate sysfs_gpio; 2 extern crate sysfs_gpio;
5 3
6 use std; 4 use std;
7 use std::io; 5 use std::io;
8 use std::mem; 6 use std::mem;
9 use std::error::Error; 7 use std::error::Error;
10 use std::time::{Duration,Instant}; 8 use std::time::{Duration,Instant};
11 9
12 use futures::{Future,future,Sink,Stream}; 10 use futures::{Future,Stream};
13 use futures_sink::{Sink};
14 use tokio_core::reactor::{Timeout,Handle};
15 use futures::sync::{mpsc}; 11 use futures::sync::{mpsc};
16 12
17 #[cfg(target_os = "linux")] 13 #[cfg(target_os = "linux")]
18 use self::sysfs_gpio::{Direction, Pin}; 14 use self::sysfs_gpio::{Direction, Pin};
19 15