From 474e808587b4c6cd25dfb5d1704aa9233e1c8e18 Mon Sep 17 00:00:00 2001 From: Valentin271 Date: Sun, 4 Feb 2024 16:33:01 +0100 Subject: [PATCH] chore: update ratatui to 0.26 --- Cargo.lock | 93 +++++++++++++++++------ code/async-template-counter/Cargo.toml | 2 +- code/hello-world-tutorial/Cargo.toml | 2 +- code/how-to-collapse-borders/Cargo.toml | 2 +- code/how-to-color_eyre/Cargo.toml | 2 +- code/how-to-overwrite-regions/Cargo.toml | 2 +- code/quickstart-ratatui/Cargo.toml | 2 +- code/ratatui-counter-app/Cargo.toml | 2 +- code/ratatui-counter-async-app/Cargo.toml | 2 +- code/ratatui-json-editor-app/Cargo.toml | 2 +- code/ratatui-stopwatch-app/Cargo.toml | 2 +- code/the-elm-architecture/Cargo.toml | 2 +- code/widget-showcase/Cargo.toml | 2 +- src/content/docs/installation/index.md | 8 +- 14 files changed, 87 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a4f2dc0f4..7350fc18a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -187,6 +187,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53" +[[package]] +name = "castaway" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a17ed5635fc8536268e5d4de1e22e81ac34419e5f052d4d51f4e01dcc263fcc" +dependencies = [ + "rustversion", +] + [[package]] name = "cc" version = "1.0.83" @@ -278,6 +287,20 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" +[[package]] +name = "compact_str" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f86b9c4c00838774a6d902ef931eff7470720c51d90c2e32cfe15dc304737b3f" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "ryu", + "serde", + "static_assertions", +] + [[package]] name = "config" version = "0.13.4" @@ -436,18 +459,18 @@ dependencies = [ [[package]] name = "derive_builder" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d67778784b508018359cbc8696edb3db78160bab2c2a28ba7f56ef6932997f8" +checksum = "660047478bc508c0fde22c868991eec0c40a63e48d610befef466d48e2bee574" dependencies = [ "derive_builder_macro", ] [[package]] name = "derive_builder_core" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c11bdc11a0c47bc7d37d582b5285da6849c96681023680b906673c5707af7b0f" +checksum = "9b217e6dd1011a54d12f3b920a411b5abd44b1716ecfe94f5f2f2f7b52e08ab7" dependencies = [ "darling 0.14.4", "proc-macro2", @@ -457,9 +480,9 @@ dependencies = [ [[package]] name = "derive_builder_macro" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebcda35c7a396850a55ffeac740804b40ffec779b98fffbb1738f4033f0ee79e" +checksum = "7a5f77d7e20ac9153428f7ca14a88aba652adfc7a0ef0a06d654386310ef663b" dependencies = [ "derive_builder_core", "syn 1.0.109", @@ -734,7 +757,7 @@ version = "0.0.0" dependencies = [ "color-eyre", "crossterm", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -743,7 +766,7 @@ version = "0.0.0" dependencies = [ "color-eyre", "crossterm", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -754,7 +777,7 @@ dependencies = [ "crossterm", "derive_setters", "lipsum", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -1159,7 +1182,7 @@ dependencies = [ name = "quickstart-ratatui" version = "0.1.0" dependencies = [ - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -1209,9 +1232,29 @@ dependencies = [ "itertools", "lru", "paste", - "serde", "stability", "strum 0.25.0", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "ratatui" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "154b85ef15a5d1719bcaa193c3c81fe645cd120c156874cd660fe49fd21d1373" +dependencies = [ + "bitflags 2.4.1", + "cassowary", + "compact_str", + "crossterm", + "indoc", + "itertools", + "lru", + "paste", + "serde", + "stability", + "strum 0.26.1", "time", "unicode-segmentation", "unicode-width", @@ -1235,7 +1278,7 @@ dependencies = [ "libc", "log", "pretty_assertions", - "ratatui", + "ratatui 0.26.0", "serde", "serde_json", "signal-hook", @@ -1255,7 +1298,7 @@ version = "0.1.0" dependencies = [ "color-eyre", "crossterm", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -1276,7 +1319,7 @@ dependencies = [ "libc", "log", "pretty_assertions", - "ratatui", + "ratatui 0.26.0", "serde", "serde_json", "signal-hook", @@ -1293,7 +1336,7 @@ name = "ratatui-hello-world-tutorial" version = "0.0.0" dependencies = [ "crossterm", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -1301,7 +1344,7 @@ name = "ratatui-json-editor-app" version = "0.0.0" dependencies = [ "crossterm", - "ratatui", + "ratatui 0.26.0", "serde", "serde_json", ] @@ -1318,7 +1361,7 @@ dependencies = [ "itertools", "libc", "log", - "ratatui", + "ratatui 0.26.0", "strip-ansi-escapes", "strum 0.26.1", "tokio", @@ -1573,6 +1616,12 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + [[package]] name = "strip-ansi-escapes" version = "0.2.0" @@ -1670,7 +1719,7 @@ version = "0.0.0" dependencies = [ "color-eyre", "crossterm", - "ratatui", + "ratatui 0.26.0", ] [[package]] @@ -1882,14 +1931,14 @@ dependencies = [ [[package]] name = "tui-big-text" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99a0144a6fac89dc00c0123dfcf70e01c914b682b16d48bdefdf68cf113e8107" +checksum = "3a40714aa0038257a165bcb2292ca393716aa77138031a2615e96deeeafc6f5b" dependencies = [ "derive_builder", "font8x8", "itertools", - "ratatui", + "ratatui 0.25.0", ] [[package]] @@ -2002,7 +2051,7 @@ dependencies = [ "clap", "color-eyre", "crossterm", - "ratatui", + "ratatui 0.26.0", "time", ] diff --git a/code/async-template-counter/Cargo.toml b/code/async-template-counter/Cargo.toml index 50121c094..57b7d30ab 100644 --- a/code/async-template-counter/Cargo.toml +++ b/code/async-template-counter/Cargo.toml @@ -22,7 +22,7 @@ lazy_static = "1.4.0" libc = "0.2.152" log = "0.4.20" pretty_assertions = "1.4.0" -ratatui = { version = "0.25.0", features = ["serde", "macros"] } +ratatui = { version = "0.26.0", features = ["serde", "macros"] } serde = { version = "1.0.196", features = ["derive"] } serde_json = "1.0.113" signal-hook = "0.3.17" diff --git a/code/hello-world-tutorial/Cargo.toml b/code/hello-world-tutorial/Cargo.toml index 8d7b66f88..b4daccc1d 100644 --- a/code/hello-world-tutorial/Cargo.toml +++ b/code/hello-world-tutorial/Cargo.toml @@ -10,4 +10,4 @@ publish.workspace = true [dependencies] crossterm = "0.27.0" -ratatui = "0.25.0" +ratatui = "0.26.0" diff --git a/code/how-to-collapse-borders/Cargo.toml b/code/how-to-collapse-borders/Cargo.toml index c64ab2cd9..f0d9d15df 100644 --- a/code/how-to-collapse-borders/Cargo.toml +++ b/code/how-to-collapse-borders/Cargo.toml @@ -15,5 +15,5 @@ publish.workspace = true [dependencies] color-eyre = "0.6.2" -ratatui = "0.25.0" +ratatui = "0.26.0" crossterm = "0.27.0" diff --git a/code/how-to-color_eyre/Cargo.toml b/code/how-to-color_eyre/Cargo.toml index 0105cb297..99a4f3ec7 100644 --- a/code/how-to-color_eyre/Cargo.toml +++ b/code/how-to-color_eyre/Cargo.toml @@ -17,5 +17,5 @@ publish.workspace = true [dependencies] color-eyre = { version = "0.6.2" } crossterm = "0.27.0" -ratatui = "0.25.0" +ratatui = "0.26.0" # ANCHOR_END: dependencies diff --git a/code/how-to-overwrite-regions/Cargo.toml b/code/how-to-overwrite-regions/Cargo.toml index 148631a55..20c282986 100644 --- a/code/how-to-overwrite-regions/Cargo.toml +++ b/code/how-to-overwrite-regions/Cargo.toml @@ -18,4 +18,4 @@ color-eyre = "0.6.2" derive_setters = "0.1.6" crossterm = "0.27.0" lipsum = "0.9.0" -ratatui = "0.25.0" +ratatui = "0.26.0" diff --git a/code/quickstart-ratatui/Cargo.toml b/code/quickstart-ratatui/Cargo.toml index bd97de223..7f5103f6f 100644 --- a/code/quickstart-ratatui/Cargo.toml +++ b/code/quickstart-ratatui/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -ratatui = "0.25.0" +ratatui = "0.26.0" diff --git a/code/ratatui-counter-app/Cargo.toml b/code/ratatui-counter-app/Cargo.toml index c25ab37c6..a23e7b520 100644 --- a/code/ratatui-counter-app/Cargo.toml +++ b/code/ratatui-counter-app/Cargo.toml @@ -9,4 +9,4 @@ publish.workspace = true [dependencies] color-eyre = "0.6.2" crossterm = "0.27.0" -ratatui = "0.25.0" +ratatui = "0.26.0" diff --git a/code/ratatui-counter-async-app/Cargo.toml b/code/ratatui-counter-async-app/Cargo.toml index 749692808..fa7410bc5 100644 --- a/code/ratatui-counter-async-app/Cargo.toml +++ b/code/ratatui-counter-async-app/Cargo.toml @@ -30,7 +30,7 @@ lazy_static = "1.4.0" libc = "0.2.152" log = "0.4.20" pretty_assertions = "1.4.0" -ratatui = { version = "0.25.0", features = ["serde", "macros"] } +ratatui = { version = "0.26.0", features = ["serde", "macros"] } serde = { version = "1.0.196", features = ["derive"] } serde_json = "1.0.113" signal-hook = "0.3.17" diff --git a/code/ratatui-json-editor-app/Cargo.toml b/code/ratatui-json-editor-app/Cargo.toml index c4d6640e6..14f9a8cb3 100644 --- a/code/ratatui-json-editor-app/Cargo.toml +++ b/code/ratatui-json-editor-app/Cargo.toml @@ -10,6 +10,6 @@ publish.workspace = true [dependencies] crossterm = "0.27.0" -ratatui = "0.25.0" +ratatui = "0.26.0" serde = { version = "1.0.196", features = ["derive"] } serde_json = "1.0.113" diff --git a/code/ratatui-stopwatch-app/Cargo.toml b/code/ratatui-stopwatch-app/Cargo.toml index a692a816a..75fc176ee 100644 --- a/code/ratatui-stopwatch-app/Cargo.toml +++ b/code/ratatui-stopwatch-app/Cargo.toml @@ -17,7 +17,7 @@ human-panic = "1.2.3" itertools = "0.12.0" libc = "0.2.152" log = "0.4.20" -ratatui = "0.25.0" +ratatui = "0.26.0" strip-ansi-escapes = "0.2.0" strum = "0.26.1" tokio = { version = "1.35.1", features = ["full"] } diff --git a/code/the-elm-architecture/Cargo.toml b/code/the-elm-architecture/Cargo.toml index 6de7c9803..464d33240 100644 --- a/code/the-elm-architecture/Cargo.toml +++ b/code/the-elm-architecture/Cargo.toml @@ -15,5 +15,5 @@ publish.workspace = true [dependencies] color-eyre = "0.6.2" -ratatui = "0.25.0" +ratatui = "0.26.0" crossterm = "0.27.0" diff --git a/code/widget-showcase/Cargo.toml b/code/widget-showcase/Cargo.toml index 3ae203a54..3a03185a3 100644 --- a/code/widget-showcase/Cargo.toml +++ b/code/widget-showcase/Cargo.toml @@ -17,5 +17,5 @@ publish.workspace = true clap = { version = "4.4.18", features = ["derive"] } color-eyre = "0.6.2" crossterm = "0.27.0" -ratatui = { version = "0.25.0", features = ["all-widgets"] } +ratatui = { version = "0.26.0", features = ["all-widgets"] } time = "0.3.31" diff --git a/src/content/docs/installation/index.md b/src/content/docs/installation/index.md index cf3dfb710..98c985530 100644 --- a/src/content/docs/installation/index.md +++ b/src/content/docs/installation/index.md @@ -13,7 +13,7 @@ or by adding the following to your `Cargo.toml` file: ```toml [dependencies] crossterm = "0.27.0" -ratatui = "0.25.0" +ratatui = "0.26.0" ``` :::tip @@ -30,7 +30,7 @@ or by adding the following to your `Cargo.toml` file: ```toml [dependencies] crossterm = "0.27.0" -ratatui = { version = "0.25.0", features = ["all-widgets"]} +ratatui = { version = "0.26.0", features = ["all-widgets"]} ``` You can learn more about available widgets from the @@ -53,7 +53,7 @@ or in your `Cargo.toml`: ```toml [dependencies] -ratatui = { version = "0.25", default-features = false, features = ["termion"] } +ratatui = { version = "0.26", default-features = false, features = ["termion"] } termion = "2.0.1" ``` @@ -68,7 +68,7 @@ or in your `Cargo.toml`: ```toml [dependencies] -ratatui = { version = "0.25", default-features = false, features = ["termwiz"] } +ratatui = { version = "0.26", default-features = false, features = ["termwiz"] } termwiz = "0.20.0" ```