Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hacksaar
rinx
Commits
656752a8
Commit
656752a8
authored
Mar 06, 2016
by
Ralf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no longer depend on chan crate
parent
55e21f18
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
22 deletions
+2
-22
Cargo.lock
Cargo.lock
+0
-17
Cargo.toml
Cargo.toml
+0
-1
src/input/fake.rs
src/input/fake.rs
+2
-2
src/main.rs
src/main.rs
+0
-2
No files found.
Cargo.lock
View file @
656752a8
...
...
@@ -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"
...
...
Cargo.toml
View file @
656752a8
...
...
@@ -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"
src/input/fake.rs
View file @
656752a8
...
...
@@ -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
}
});
}
...
...
src/main.rs
View file @
656752a8
...
...
@@ -7,8 +7,6 @@
extern
crate
take_mut
;
#[macro_use]
extern
crate
log
;
#[macro_use]
extern
crate
chan
;
pub
mod
logger
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment