Repository: orhun/systeroid (language: rust)

Issue:
Switch to `ratatui`
**Is your feature request related to a problem? Please describe.**

[ratatui](https://github.com/tui-rs-revival/ratatui) is the actively maintained fork of [tui-rs](https://github.com/fdehau/tui-rs) and it would be nice to switch to it.

**Describe the solution you'd like**

Update `Cargo.{toml,lock}` according to the [instructions](https://github.com/tui-rs-revival/ratatui/#install).

**Describe alternatives you've considered**

None.

**Additional context**

`ratatui` had a new release recently and there is a bug fix release on the way. It would be nice to wait until https://github.com/tui-rs-revival/ratatui/pull/110 is merged.


Discussion / hints:

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index 13533f3..e41e339 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -589,6 +589,19 @@ dependencies = [
  "proc-macro2",
 ]
 
+[[package]]
+name = "ratatui"
+version = "0.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dcc0d032bccba900ee32151ec0265667535c230169f5a011154cdcd984e16829"
+dependencies = [
+ "bitflags",
+ "cassowary",
+ "termion",
+ "unicode-segmentation",
+ "unicode-width",
+]
+
 [[package]]
 name = "rayon"
 version = "1.6.1"
@@ -826,25 +839,13 @@ dependencies = [
  "colorsys",
  "copypasta-ext",
  "getopts",
+ "ratatui",
  "systeroid-core",
- "termion 2.0.1",
+ "termion",
  "thiserror",
- "tui",
  "unicode-width",
 ]
 
-[[package]]
-name = "termion"
-version = "1.5.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "077185e2eac69c3f8379a4298e1e07cd36beb962290d4a51199acf0fdc10607e"
-dependencies = [
- "libc",
- "numtoa",
- "redox_syscall",
- "redox_termios",
-]
-
 [[package]]
 name = "termion"
 version = "2.0.1"
@@ -886,19 +887,6 @@ dependencies = [
  "once_cell",
 ]
 
-[[package]]
-name = "tui"
-version = "0.19.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ccdd26cbd674007e649a272da4475fb666d3aa0ad0531da7136db6fab0e5bad1"
-dependencies = [
- "bitflags",
- "cassowary",
- "termion 1.5.6",
- "unicode-segmentation",
- "unicode-width",
-]
-
 [[package]]
 name = "unicode-ident"
 version = "1.0.6"
diff --git a/systeroid-tui/Cargo.toml b/systeroid-tui/Cargo.toml
index ea302f1..fdba8a5 100644
--- a/systeroid-tui/Cargo.toml
+++ b/systeroid-tui/Cargo.toml
@@ -30,7 +30,8 @@ version = "0.3.1" # managed by release.sh
 path = "../systeroid-core"
 
 [dependencies.tui]
-version = "0.19.0"
+package = "ratatui"
+version = "0.20.1"
 default-features = false
 features = ["termion"]
 


Test patch: