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

no longer depend on chan crate

parent 55e21f18
......@@ -2,19 +2,10 @@
name = "rinx"
version = "0.1.0"
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)",
"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]]
name = "libc"
version = "0.2.7"
......@@ -28,14 +19,6 @@ dependencies = [
"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]]
name = "take_mut"
version = "0.1.3"
......
......@@ -5,5 +5,4 @@ authors = ["Constantin Berhard <git.mail.enormator@xoxy.net>"]
[dependencies]
log = "0.3.5"
chan = "0.1.14"
take_mut = "0.1.3"
......@@ -3,7 +3,7 @@
use std::time::Duration;
use std::thread;
use chan::Sender;
use std::sync::mpsc::Sender;
use input::Event;
/// FakeInput is an event generator that produces a predetermined stream
......@@ -25,7 +25,7 @@ impl FakeInput {
thread::spawn(move || {
for (d, e) in e {
thread::sleep(d);
chan.send(e);
chan.send(e).unwrap(); // bail out if we cannot send
}
});
}
......
......@@ -7,8 +7,6 @@
extern crate take_mut;
#[macro_use]
extern crate log;
#[macro_use]
extern crate chan;
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