From 842d201b5bc34d36f440ce31d9351792dcc2ed27 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Tue, 25 Jun 2024 12:17:23 +0200 Subject: [PATCH] lib: Use tui-textarea with termion --- Cargo.lock | 40 +--------------------------------------- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 40 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b5e6ea47..026e3db5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -478,31 +478,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossterm" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" -dependencies = [ - "bitflags 2.4.1", - "crossterm_winapi", - "libc", - "mio", - "parking_lot", - "signal-hook", - "signal-hook-mio", - "winapi", -] - -[[package]] -name = "crossterm_winapi" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" -dependencies = [ - "winapi", -] - [[package]] name = "crypto-bigint" version = "0.5.5" @@ -1193,7 +1168,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", - "log", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.48.0", ] @@ -1905,7 +1879,6 @@ dependencies = [ "bitflags 2.4.1", "cassowary", "compact_str", - "crossterm", "indoc", "itertools", "lru", @@ -2137,17 +2110,6 @@ dependencies = [ "signal-hook-registry", ] -[[package]] -name = "signal-hook-mio" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" -dependencies = [ - "libc", - "mio", - "signal-hook", -] - [[package]] name = "signal-hook-registry" version = "1.4.1" @@ -2762,8 +2724,8 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e38ced1f941a9cfc923fbf2fe6858443c42cc5220bfd35bdd3648371e7bd8e" dependencies = [ - "crossterm", "ratatui", + "termion 2.0.3", "unicode-width", ] diff --git a/Cargo.toml b/Cargo.toml index bd555857..c67ac556 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,4 +44,4 @@ textwrap = { version = "0.16.0" } thiserror = { version = "1" } tokio = { version = "1.32.0", features = ["full"] } tokio-stream = { version = "0.1.14" } -tui-textarea = "0.4.0" \ No newline at end of file +tui-textarea = { version = "0.4.0", default-features = false, features = ["termion"] } \ No newline at end of file