mirror of
https://github.com/figsoda/mmtc
synced 2024-11-26 08:50:18 +00:00
bump dependencies
This commit is contained in:
parent
7acaddc682
commit
cccb497c47
3 changed files with 38 additions and 7 deletions
31
Cargo.lock
generated
31
Cargo.lock
generated
|
@ -195,7 +195,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "4e86d73f2a0b407b5768d10a8c720cf5d2df49a9efc10ca09176d201ead4b7fb"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"crossterm_winapi",
|
||||
"crossterm_winapi 0.6.2",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"mio",
|
||||
"parking_lot",
|
||||
"signal-hook",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossterm"
|
||||
version = "0.19.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7c36c10130df424b2f3552fcc2ddcd9b28a27b1e54b358b45874f88d1ca6888c"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"crossterm_winapi 0.7.0",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"mio",
|
||||
|
@ -213,6 +229,15 @@ dependencies = [
|
|||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossterm_winapi"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0da8964ace4d3e4a044fd027919b2237000b24315a37c916f61809f1ff2140b9"
|
||||
dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dirs-next"
|
||||
version = "2.0.0"
|
||||
|
@ -392,7 +417,7 @@ dependencies = [
|
|||
"async-io",
|
||||
"async-net",
|
||||
"crossbeam-queue",
|
||||
"crossterm",
|
||||
"crossterm 0.19.0",
|
||||
"dirs-next",
|
||||
"expand",
|
||||
"futures-lite",
|
||||
|
@ -667,7 +692,7 @@ checksum = "5d4e6c82bb967df89f20b875fa8835fab5d5622c6a5efa574a1f0b6d0aa6e8f6"
|
|||
dependencies = [
|
||||
"bitflags",
|
||||
"cassowary",
|
||||
"crossterm",
|
||||
"crossterm 0.18.2",
|
||||
"serde",
|
||||
"unicode-segmentation",
|
||||
"unicode-width",
|
||||
|
|
|
@ -18,7 +18,7 @@ anyhow = "1.0.36"
|
|||
async-io = "1.3.1"
|
||||
async-net = "1.5.0"
|
||||
crossbeam-queue = "0.3.1"
|
||||
crossterm = "0.18.2"
|
||||
crossterm = "0.19.0"
|
||||
dirs-next = "2.0.0"
|
||||
expand = "0.2.0"
|
||||
futures-lite = "1.11.3"
|
||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -15,7 +15,7 @@ use crossbeam_queue::SegQueue;
|
|||
use crossterm::{
|
||||
event::{
|
||||
self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyEvent, KeyModifiers,
|
||||
MouseEvent,
|
||||
MouseEvent, MouseEventKind,
|
||||
},
|
||||
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
|
||||
ExecutableCommand,
|
||||
|
@ -180,8 +180,14 @@ async fn run() -> Result<()> {
|
|||
let mut searching = false;
|
||||
while let Ok(ev) = event::read() {
|
||||
cmds1.push(match ev {
|
||||
Event::Mouse(MouseEvent::ScrollDown(..)) => Command::Down,
|
||||
Event::Mouse(MouseEvent::ScrollUp(..)) => Command::Up,
|
||||
Event::Mouse(MouseEvent {
|
||||
kind: MouseEventKind::ScrollUp,
|
||||
..
|
||||
}) => Command::Down,
|
||||
Event::Mouse(MouseEvent {
|
||||
kind: MouseEventKind::ScrollDown,
|
||||
..
|
||||
}) => Command::Up,
|
||||
Event::Resize(..) => {
|
||||
updates3.fetch_or(0b001, Ordering::Relaxed);
|
||||
t3.unpark();
|
||||
|
|
Loading…
Reference in a new issue