summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-03-03 00:40:23 +0800
committerGitHub <noreply@github.com>2024-03-03 00:40:23 +0800
commit23d187986ef2e835f144395b54cf05954aa99128 (patch)
tree0d40bb31229711e9197d0682e7570762640f2360
parentbd477e75edd6a3266240869c1756c3082f5c148c (diff)
chore(deps): bump ratatui from 0.25.0 to 0.26.1 (#368)
* chore(deps): bump ratatui from 0.25.0 to 0.26.1 Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.25.0 to 0.26.1. - [Release notes](https://github.com/ratatui-org/ratatui/releases) - [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md) - [Commits](https://github.com/ratatui-org/ratatui/compare/v0.25.0...v0.26.1) --- updated-dependencies: - dependency-name: ratatui dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Use legacy layout (for now) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
-rw-r--r--Cargo.lock67
-rw-r--r--Cargo.toml2
-rw-r--r--src/display/components/table.rs1
3 files changed, 42 insertions, 28 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 4e8cba4..94e2bc2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -189,7 +189,7 @@ dependencies = [
"resolv-conf",
"rstest",
"simplelog",
- "strum 0.26.1",
+ "strum",
"sysinfo",
"thiserror",
"tokio",
@@ -271,6 +271,15 @@ 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"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -386,6 +395,19 @@ 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",
+ "static_assertions",
+]
+
+[[package]]
name = "console"
version = "0.15.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1444,19 +1466,20 @@ dependencies = [
[[package]]
name = "ratatui"
-version = "0.25.0"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5659e52e4ba6e07b2dad9f1158f578ef84a73762625ddb51536019f34d180eb"
+checksum = "bcb12f8fbf6c62614b0d56eb352af54f6a22410c3b079eb53ee93c7b97dd31d8"
dependencies = [
"bitflags 2.4.2",
"cassowary",
+ "compact_str",
"crossterm",
"indoc",
"itertools",
"lru",
"paste",
"stability",
- "strum 0.25.0",
+ "strum",
"unicode-segmentation",
"unicode-width",
]
@@ -1605,6 +1628,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
[[package]]
+name = "ryu"
+version = "1.0.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
+
+[[package]]
name = "schannel"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1773,19 +1802,16 @@ dependencies = [
]
[[package]]
-name = "strsim"
-version = "0.11.0"
+name = "static_assertions"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
-name = "strum"
-version = "0.25.0"
+name = "strsim"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
-dependencies = [
- "strum_macros 0.25.3",
-]
+checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01"
[[package]]
name = "strum"
@@ -1793,20 +1819,7 @@ version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "723b93e8addf9aa965ebe2d11da6d7540fa2283fcea14b3371ff055f7ba13f5f"
dependencies = [
- "strum_macros 0.26.1",
-]
-
-[[package]]
-name = "strum_macros"
-version = "0.25.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0"
-dependencies = [
- "heck",
- "proc-macro2",
- "quote",
- "rustversion",
- "syn 2.0.48",
+ "strum_macros",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index bdf7389..c066b4b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -34,7 +34,7 @@ log = "0.4.21"
once_cell = "1.19.0"
pnet = "0.34.0"
pnet_macros_support = "0.34.0"
-ratatui = "0.25.0"
+ratatui = "0.26.1"
resolv-conf = "0.7.0"
simplelog = "0.12.1"
thiserror = "1.0.57"
diff --git a/src/display/components/table.rs b/src/display/components/table.rs
index 2b450b1..59193a0 100644
--- a/src/display/components/table.rs
+++ b/src/display/components/table.rs
@@ -380,6 +380,7 @@ impl Table {
let table = ratatui::widgets::Table::new(tui_rows_iter, widths_constraints)
.block(Block::default().title(self.title).borders(Borders::ALL))
.header(Row::new(column_names).style(Style::default().fg(Color::Yellow)))
+ .flex(ratatui::layout::Flex::Legacy)
.column_spacing(spacer_width);
frame.render_widget(table, rect);
}