Skip to content

Commit 44e2281

Browse files
authored
Bump various dependencies (#643)
* Bump tower to 0.5.2 and tower-http to 0.6.6 * Bump crossterm to 0.29 * Bump dirs to 6 * Bump ratatui to 0.29 * Bump tracing-journald to 0.3 * Bump compatible cargo deps * Bump toml to 0.9.7 * Bump minimal tokio version to the latest LTS At the time of writing this is 1.47.1
1 parent dca4748 commit 44e2281

File tree

14 files changed

+743
-591
lines changed

14 files changed

+743
-591
lines changed

Cargo.lock

Lines changed: 699 additions & 551 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

console-subscriber/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ vsock = ["dep:tokio-vsock"]
3333

3434
[dependencies]
3535
crossbeam-utils = "0.8.7"
36-
tokio = { version = "1.34", features = ["sync", "time", "macros", "tracing"] }
36+
tokio = { version = "1.47.1", features = ["sync", "time", "macros", "tracing"] }
3737
tokio-stream = { version = "0.1.16", features = ["net"] }
3838
thread_local = "1.1.4"
3939
console-api = { version = "0.8.0", path = "../console-api", features = ["transport"] }
@@ -58,11 +58,11 @@ crossbeam-channel = "0.5"
5858
tokio-vsock = { version = "0.7.2", optional = true, features = ["tonic014"]}
5959

6060
[dev-dependencies]
61-
tokio = { version = "1.34", features = ["full", "rt-multi-thread"] }
62-
tower = { version = "0.4.12", default-features = false, features = ["util"] }
61+
tokio = { version = "1.47.1", features = ["full", "rt-multi-thread"] }
62+
tower = { version = "0.5.2", default-features = false, features = ["util"] }
6363
futures = "0.3"
6464
http = "1.1"
65-
tower-http = { version = "0.5", features = ["cors"] }
65+
tower-http = { version = "0.6.6", features = ["cors"] }
6666
tonic-web = "0.14.2"
6767

6868
[lints.rust.unexpected_cfgs]

tokio-console/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ eula = false
3636
console-api = { version = "0.8.1", path = "../console-api", features = ["transport"] }
3737
clap = { version = "~4.5.4", features = ["wrap_help", "cargo", "derive", "env"] }
3838
clap_complete = "~4.5.2"
39-
tokio = { version = "1.34", features = ["full", "rt-multi-thread"] }
39+
tokio = { version = "1.47.1", features = ["full", "rt-multi-thread"] }
4040
tonic = { version = "0.14.2", features = ["transport"] }
4141
futures = "0.3"
42-
ratatui = { version = "0.26.2", default-features = false, features = ["crossterm"] }
43-
tower = { version = "0.4.12", features = ["util"] }
42+
ratatui = { version = "0.29.0", default-features = false, features = ["crossterm"] }
43+
tower = { version = "0.5.2", features = ["util"] }
4444
tracing = "0.1.35"
4545
tracing-subscriber = { version = "0.3.17" }
46-
tracing-journald = { version = "0.2", optional = true }
46+
tracing-journald = { version = "0.3", optional = true }
4747
prost-types = "0.14.1"
48-
crossterm = { version = "0.27.0", features = ["event-stream"] }
48+
crossterm = { version = "0.29.0", features = ["event-stream"] }
4949
color-eyre = { version = "0.6", features = ["issue-url"] }
5050
hdrhistogram = { version = "7.4.0", default-features = false, features = ["serialization"] }
5151
# Keep this in sync with the version from `tonic`.
@@ -57,8 +57,8 @@ once_cell = "1.17.1"
5757
cfg-if = "1.0.0"
5858
humantime = "2.1.0"
5959
serde = { version = "1.0.145", features = ["derive"] }
60-
toml = "0.5"
61-
dirs = "5"
60+
toml = "0.9"
61+
dirs = "6"
6262
hyper-util = { version = "0.1.6", features = ["tokio"] }
6363
tokio-vsock = { version = "0.7.2", features = ["tonic014"], optional = true }
6464

tokio-console/console.example.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
default_target_addr = 'http://127.0.0.1:6669/'
2-
log = 'off'
1+
default_target_addr = "http://127.0.0.1:6669/"
2+
log = "off"
33
warnings = [
4-
'self-wakes',
5-
'lost-waker',
6-
'never-yielded',
7-
'auto-boxed-future',
8-
'large-future',
4+
"self-wakes",
5+
"lost-waker",
6+
"never-yielded",
7+
"auto-boxed-future",
8+
"large-future",
99
]
10-
log_directory = '/tmp/tokio-console/logs'
11-
retention = '6s'
10+
log_directory = "/tmp/tokio-console/logs"
11+
retention = "6s"
1212

1313
[charset]
14-
lang = 'en_US.UTF-8'
14+
lang = "en_US.UTF-8"
1515
ascii_only = false
1616

1717
[colors]
1818
enabled = true
1919
truecolor = true
20-
palette = 'all'
20+
palette = "all"
2121

2222
[colors.enable]
2323
durations = true

tokio-console/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async fn main() -> color_eyre::Result<()> {
152152
]
153153
.as_ref(),
154154
)
155-
.split(f.size());
155+
.split(f.area());
156156

157157
let mut header_text = conn.render(&view.styles);
158158
match state.temporality() {

tokio-console/src/view/async_ops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl TableList<9> for AsyncOpsTable {
5959
fn render(
6060
table_list_state: &mut TableListState<Self, 9>,
6161
styles: &view::Styles,
62-
frame: &mut ratatui::terminal::Frame,
62+
frame: &mut ratatui::Frame,
6363
area: layout::Rect,
6464
state: &mut State,
6565
ctx: Self::Context,
@@ -212,7 +212,7 @@ impl TableList<9> for AsyncOpsTable {
212212
.block(block)
213213
.widths(widths)
214214
.highlight_symbol(view::TABLE_HIGHLIGHT_SYMBOL)
215-
.highlight_style(Style::default().add_modifier(style::Modifier::BOLD));
215+
.row_highlight_style(Style::default().add_modifier(style::Modifier::BOLD));
216216

217217
frame.render_stateful_widget(table, area, &mut table_list_state.table_state);
218218

tokio-console/src/view/help.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ impl<'a> HelpView<'a> {
2424
pub(crate) fn render(
2525
&mut self,
2626
styles: &view::Styles,
27-
frame: &mut ratatui::terminal::Frame,
27+
frame: &mut ratatui::Frame,
2828
_area: layout::Rect,
2929
_state: &mut State,
3030
) {
31-
let r = frame.size();
31+
let r = frame.area();
3232
let content = self
3333
.help_text
3434
.take()

tokio-console/src/view/mini_histogram.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::time::Duration;
22

33
use ratatui::{
4-
layout::Rect,
4+
layout::{Position, Rect},
55
style::Style,
66
symbols,
77
widgets::{Block, Widget},
@@ -165,9 +165,13 @@ impl<'a> MiniHistogram<'a> {
165165
7 => self.bar_set.seven_eighths,
166166
_ => self.bar_set.full,
167167
};
168-
buf.get_mut(area.left() + i as u16, area.top() + j)
169-
.set_symbol(symbol)
170-
.set_style(self.style);
168+
169+
if let Some(cell) = buf.cell_mut(Position {
170+
x: area.left() + i as u16,
171+
y: area.top() + j,
172+
}) {
173+
cell.set_symbol(symbol).set_style(self.style);
174+
}
171175

172176
if *d > 8 {
173177
*d -= 8;

tokio-console/src/view/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl View {
219219

220220
pub(crate) fn render(
221221
&mut self,
222-
frame: &mut ratatui::terminal::Frame,
222+
frame: &mut ratatui::Frame,
223223
area: layout::Rect,
224224
state: &mut State,
225225
) {

tokio-console/src/view/resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl ResourceView {
4141
pub(crate) fn render(
4242
&mut self,
4343
styles: &view::Styles,
44-
frame: &mut ratatui::terminal::Frame,
44+
frame: &mut ratatui::Frame,
4545
area: layout::Rect,
4646
state: &mut State,
4747
) {

0 commit comments

Comments
 (0)