From 6f1aa220c6a20bb7deba867cae3613e66571f9ef Mon Sep 17 00:00:00 2001 From: Timon Post Date: Tue, 2 Apr 2019 22:23:38 +0200 Subject: [PATCH] Reverted some version number --- Cargo.toml | 4 ++-- crossterm_cursor/Cargo.toml | 2 +- crossterm_input/src/input/mod.rs | 4 ---- crossterm_screen/Cargo.toml | 2 +- crossterm_style/Cargo.toml | 2 +- crossterm_terminal/Cargo.toml | 2 +- crossterm_utils/Cargo.toml | 2 +- 7 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ed17c1d..1bbeb4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crossterm" -version = "0.8.0" +version = "0.7.0" authors = ["T. Post"] description = "An crossplatform terminal library for manipulating terminals." repository = "https://github.com/TimonPost/crossterm" @@ -36,7 +36,7 @@ crossterm_screen = { optional = true, version = "0.1.0" } crossterm_cursor = { optional = true, version = "0.1.0" } crossterm_terminal = { optional = true, version = "0.1.0" } crossterm_style = { optional = true, version = "0.2.0" } -crossterm_input = { optional = true, version = "0.2.0" } +crossterm_input = { optional = true, version = "0.1.0" } crossterm_utils = { version = "0.1.0" } [lib] diff --git a/crossterm_cursor/Cargo.toml b/crossterm_cursor/Cargo.toml index 9665123..e6303d4 100644 --- a/crossterm_cursor/Cargo.toml +++ b/crossterm_cursor/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.5", features = ["wincon","winnt","minwindef"] } -crossterm_winapi = "0.1.2" +crossterm_winapi = "0.1.1" [dependencies] crossterm_utils = "0.1.0" diff --git a/crossterm_input/src/input/mod.rs b/crossterm_input/src/input/mod.rs index 626f1d1..b41877f 100644 --- a/crossterm_input/src/input/mod.rs +++ b/crossterm_input/src/input/mod.rs @@ -126,7 +126,6 @@ pub struct SyncReader; /// - Threads spawned will be disposed of as soon the `AsyncReader` goes out of scope. /// - MPSC-channels are used to queue input events, this type implements an iterator of the rx side of the queue. pub struct AsyncReader { - function: Box, &Arc) + Send>, event_rx: Receiver, shutdown: Arc, } @@ -140,14 +139,11 @@ impl AsyncReader { let (event_tx, event_rx) = mpsc::channel(); let thread_shutdown = shutdown_handle.clone(); - let function = function.function; - thread::spawn(move || loop { function(&event_tx, &thread_shutdown); }); AsyncReader { - function, event_rx, shutdown: shutdown_handle, } diff --git a/crossterm_screen/Cargo.toml b/crossterm_screen/Cargo.toml index 3b7a72a..69391d3 100644 --- a/crossterm_screen/Cargo.toml +++ b/crossterm_screen/Cargo.toml @@ -16,4 +16,4 @@ crossterm_utils = "0.1.0" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.5", features = ["minwindef", "wincon"] } -crossterm_winapi = "0.1.2" \ No newline at end of file +crossterm_winapi = "0.1.1" \ No newline at end of file diff --git a/crossterm_style/Cargo.toml b/crossterm_style/Cargo.toml index 8d3d386..e30eddc 100644 --- a/crossterm_style/Cargo.toml +++ b/crossterm_style/Cargo.toml @@ -13,7 +13,7 @@ edition = "2018" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.5", features = ["wincon"] } -crossterm_winapi = "0.1.2" +crossterm_winapi = "0.1.1" [dependencies] crossterm_utils = "0.1.0" diff --git a/crossterm_terminal/Cargo.toml b/crossterm_terminal/Cargo.toml index e515740..8e6a950 100644 --- a/crossterm_terminal/Cargo.toml +++ b/crossterm_terminal/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" edition = "2018" [target.'cfg(windows)'.dependencies] -crossterm_winapi = "0.1.2" +crossterm_winapi = "0.1.1" [target.'cfg(unix)'.dependencies] libc = "0.2.43" diff --git a/crossterm_utils/Cargo.toml b/crossterm_utils/Cargo.toml index b644f63..b5b745c 100644 --- a/crossterm_utils/Cargo.toml +++ b/crossterm_utils/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Timon Post "] edition = "2018" [target.'cfg(windows)'.dependencies] -crossterm_winapi = "0.1.2" +crossterm_winapi = "0.1.1" winapi = { version = "0.3.5", features = ["wincon"] } [target.'cfg(unix)'.dependencies]