Skip to content

Commit f2a9867

Browse files
committed
update dependencies
1 parent ff2f9e3 commit f2a9867

File tree

9 files changed

+687
-559
lines changed

9 files changed

+687
-559
lines changed

Cargo.lock

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

entrace_query/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.2"
44
edition = "2024"
55

66
[dependencies]
7-
mlua = { version = "0.10.5", features = ["error-send", "luajit"] }
7+
mlua = { version = "0.11.0", features = ["error-send", "luajit"] }
88
entrace_core = { version = "0.1.1", path = "../entrace_core/" }
99
anyhow = "1.0.100"
1010
memchr = "2.7.6"

entrace_script/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
clap = { version = "4.5.50", features = ["derive"] }
8-
mlua = { version = "0.10.5", features = ["error-send", "luajit"] }
8+
mlua = { version = "0.11.0", features = ["error-send", "luajit"] }
99
entrace_query = { version = "0.1.1", path = "../entrace_query/" }
1010
entrace_core = { version = "0.1.1", path = "../entrace_core/" }
1111
anyhow = "1.0.100"

example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
license = "MIT OR Apache-2.0"
66

77
[dependencies]
8-
petgraph = "0.6"
8+
petgraph = "0.8"
99
tracing = {version = "0.1"}
1010
tracing-appender = {version = "0.2.3" }
1111
tracing-subscriber = { version = "0.3", features = ["fmt", "json", "registry"]}

flake.lock

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

gui/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ circular-buffer = "1.1.0"
1212
clap = { version = "4.5.40", features = ["derive"] }
1313
crossbeam = { version = "0.8.4", features = ["crossbeam-channel"] }
1414
directories = "6.0.0"
15-
eframe = "0.32.0"
16-
egui = "0.32.0"
17-
egui_extras = { version = "0.32.0", features = ["all_loaders"] }
18-
egui_material_icons = "0.4.0"
15+
eframe = "0.33.0"
16+
egui = "0.33.0"
17+
egui_extras = { version = "0.33.0", features = ["all_loaders"] }
18+
egui_material_icons = "0.5.0"
1919
entrace_core = { version = "0.1.1", path = "../entrace_core/" }
2020
entrace_query = { version = "0.1.1", path = "../entrace_query/" }
2121
memchr = "2.7.5"
2222
mimalloc = "0.1.47"
23-
mlua = { version = "0.10.5", features = ["error-send", "luajit"] }
23+
mlua = { version = "0.11.0", features = ["error-send", "luajit"] }
2424
notify = "8.0.0"
2525
rfd = "0.15.4"
2626
thiserror = "2.0.12"

gui/src/app.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::{
99
use anyhow::Context;
1010
use clap::Parser;
1111
use egui::{
12-
Color32, FontId, Margin, Pos2, Rect, RichText, Stroke, Theme, Ui,
12+
Color32, Margin, Pos2, Rect, RichText, Stroke, Theme, Ui,
1313
epaint::text::{FontInsert, InsertFontFamily},
1414
};
1515
use entrace_core::{
@@ -30,6 +30,7 @@ use crate::{
3030
ephemeral_settings::EphemeralSettings,
3131
frame_time::{FrameTimeTracker, TrackFrameTime, us_to_human},
3232
notifications::{self, NotificationHandle, RefreshToken},
33+
row_height_from_ctx,
3334
search::{self, LocatingState, SearchState, query_window::query_windows},
3435
self_tracing::SelfTracingState,
3536
settings::{self, SettingsDialogState, SettingsState, apply_settings},
@@ -281,7 +282,7 @@ impl eframe::App for App {
281282
});
282283
});
283284
if let LogStatus::Ready(log_state) = &self.log_status {
284-
let font_size = ctx.fonts(|x| x.row_height(&FontId::monospace(FontId::default().size)));
285+
let font_size = row_height_from_ctx(ctx);
285286
let text_field_margin = Margin::symmetric(4, 2);
286287
let text_field_size =
287288
font_size * 2.0 + text_field_margin.topf() + text_field_margin.bottomf();

gui/src/main.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::{
1717
};
1818

1919
use egui::{
20-
CollapsingHeader, Color32, Response, RichText, ScrollArea, TextStyle, Theme, Ui,
20+
CollapsingHeader, Color32, FontId, Response, RichText, ScrollArea, TextStyle, Theme, Ui,
2121
epaint::RectShape, vec2,
2222
};
2323
use entrace_core::{LevelContainer, display_error_context};
@@ -306,6 +306,13 @@ fn span(
306306
}
307307

308308
pub fn row_height(ui: &mut Ui) -> f32 {
309-
ui.fonts(|x| x.row_height(&TextStyle::Body.resolve(ui.style())))
309+
ui.fonts_mut(|x| x.row_height(&TextStyle::Body.resolve(ui.style())))
310310
//ui.fonts(|x| x.row_height(&FontId::default()))
311311
}
312+
313+
pub fn row_height_from_ctx(ctx: &egui::Context) -> f32 {
314+
// HACK: we can't use &TextStyle::Body.resolve(&ctx.style()) here, as it seems to run into a
315+
// deadlock.
316+
// Not sure what's the best way around this.
317+
ctx.fonts_mut(|x| x.row_height(&FontId::default()))
318+
}

gui/src/notifications.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ pub fn notifications(ui: &mut egui::Ui, app: &mut App) -> egui::InnerResponse<()
107107
let item_spacing = vec2(item_spacing.x * 0.5, item_spacing.y);
108108

109109
let severity_galley =
110-
ui.fonts(|x| x.layout_no_wrap(repr.0.to_string(), font_id.clone(), text_color));
111-
let text_galley =
112-
ui.fonts(|x| x.layout(notification.text.to_string(), font_id, text_color, 200.0));
110+
ui.fonts_mut(|x| x.layout_no_wrap(repr.0.to_string(), font_id.clone(), text_color));
111+
let text_galley = ui
112+
.fonts_mut(|x| x.layout(notification.text.to_string(), font_id, text_color, 200.0));
113113
let severity_galley_size = severity_galley.size();
114114

115115
let frame_width = (item_spacing.x + text_galley.size().x + item_spacing.x).max(100.0);

0 commit comments

Comments
 (0)