Commit 656752a8 authored by Ralf's avatar Ralf
Browse files

no longer depend on chan crate

parent 55e21f18
...@@ -2,19 +2,10 @@ ...@@ -2,19 +2,10 @@
name = "rinx" name = "rinx"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"chan 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"take_mut 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "take_mut 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "chan"
version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.7" version = "0.2.7"
...@@ -28,14 +19,6 @@ dependencies = [ ...@@ -28,14 +19,6 @@ dependencies = [
"libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "rand"
version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]] [[package]]
name = "take_mut" name = "take_mut"
version = "0.1.3" version = "0.1.3"
......
...@@ -5,5 +5,4 @@ authors = ["Constantin Berhard <git.mail.enormator@xoxy.net>"] ...@@ -5,5 +5,4 @@ authors = ["Constantin Berhard <git.mail.enormator@xoxy.net>"]
[dependencies] [dependencies]
log = "0.3.5" log = "0.3.5"
chan = "0.1.14"
take_mut = "0.1.3" take_mut = "0.1.3"
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
use std::time::Duration; use std::time::Duration;
use std::thread; use std::thread;
use chan::Sender; use std::sync::mpsc::Sender;
use input::Event; use input::Event;
/// FakeInput is an event generator that produces a predetermined stream /// FakeInput is an event generator that produces a predetermined stream
...@@ -25,7 +25,7 @@ impl FakeInput { ...@@ -25,7 +25,7 @@ impl FakeInput {
thread::spawn(move || { thread::spawn(move || {
for (d, e) in e { for (d, e) in e {
thread::sleep(d); thread::sleep(d);
chan.send(e); chan.send(e).unwrap(); // bail out if we cannot send
} }
}); });
} }
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
extern crate take_mut; extern crate take_mut;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
#[macro_use]
extern crate chan;
pub mod logger; pub mod logger;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment