Skip to content

Commit c327ed3

Browse files
committed
Update to egui 0.32 (& update all deps)
1 parent 85fb18a commit c327ed3

File tree

10 files changed

+254
-128
lines changed

10 files changed

+254
-128
lines changed

Cargo.lock

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

objdiff-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ publish = false
1515
[dependencies]
1616
anyhow = "1.0"
1717
argp = "0.4"
18-
crossterm = "0.28"
18+
crossterm = "0.29"
1919
enable-ansi-support = "0.2"
2020
memmap2 = "0.9"
2121
objdiff-core = { path = "../objdiff-core", features = ["all"] }
22-
prost = "0.13"
22+
prost = "0.14"
2323
ratatui = "0.29"
2424
rayon = "1.10"
2525
serde = { version = "1.0", features = ["derive"] }

objdiff-core/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ features = ["all"]
123123
[dependencies]
124124
anyhow = { version = "1.0", default-features = false }
125125
filetime = { version = "0.2", optional = true }
126-
flagset = { version = "0.4", default-features = false, optional = true, git = "https://github.com/enarx/flagset.git", rev = "a1fe9369b3741e43fec45da1998e83b9d78966a2" }
126+
flagset = { version = "0.4", default-features = false, optional = true }
127127
itertools = { version = "0.14", default-features = false, features = ["use_alloc"] }
128128
log = { version = "0.4", default-features = false, optional = true }
129129
memmap2 = { version = "0.9", optional = true }
130130
num-traits = { version = "0.2", default-features = false, optional = true }
131131
object = { git = "https://github.com/gimli-rs/object", rev = "16ff70aa6fbd97d6bb7b92375929f4d72414c32b", default-features = false, features = ["read_core", "elf", "coff"] }
132-
pbjson = { version = "0.7", default-features = false, optional = true }
133-
prost = { version = "0.13", default-features = false, features = ["prost-derive"], optional = true }
132+
pbjson = { version = "0.8", default-features = false, optional = true }
133+
prost = { version = "0.14", default-features = false, features = ["derive"], optional = true }
134134
regex = { version = "1.11", default-features = false, features = [], optional = true }
135135
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
136136
similar = { version = "2.7", default-features = false, features = ["hashbrown"], optional = true, git = "https://github.com/encounter/similar.git", branch = "no_std" }
@@ -142,35 +142,35 @@ semver = { version = "1.0", default-features = false, optional = true }
142142
serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
143143

144144
# dwarf
145-
gimli = { version = "0.31", default-features = false, features = ["read"], optional = true }
145+
gimli = { version = "0.32", default-features = false, features = ["read"], optional = true }
146146

147147
# ppc
148148
cwdemangle = { version = "1.0", optional = true }
149-
cwextab = { version = "1.0", optional = true }
149+
cwextab = { version = "1.1", optional = true }
150150
powerpc = { version = "0.4", optional = true }
151151
rlwinmdec = { version = "1.1", optional = true }
152152

153153
# mips
154-
rabbitizer = { version = "2.0.0-alpha.1", default-features = false, features = ["all_extensions"], optional = true }
154+
rabbitizer = { version = "2.0.0-alpha.4", default-features = false, features = ["all_extensions"], optional = true }
155155

156156
# x86
157157
cpp_demangle = { version = "0.4", default-features = false, features = ["alloc"], optional = true }
158158
iced-x86 = { version = "1.21", default-features = false, features = ["decoder", "intel", "gas", "masm", "nasm", "exhaustive_enums", "no_std"], optional = true }
159159
msvc-demangler = { version = "0.11", optional = true }
160160

161161
# arm
162-
unarm = { version = "1.8", optional = true }
162+
unarm = { version = "1.9", optional = true }
163163
arm-attr = { version = "0.2", optional = true }
164164

165165
# arm64
166166
yaxpeax-arch = { version = "0.3", default-features = false, optional = true }
167167
yaxpeax-arm = { version = "0.3", default-features = false, optional = true }
168168

169169
# build
170-
notify = { version = "8.0.0", optional = true }
170+
notify = { version = "8.1.0", optional = true }
171171
notify-debouncer-full = { version = "0.5.0", optional = true }
172172
shell-escape = { version = "0.1", optional = true }
173-
tempfile = { version = "3.19", optional = true }
173+
tempfile = { version = "3.20", optional = true }
174174
time = { version = "0.3", optional = true }
175175
encoding_rs = { version = "0.8.35", optional = true }
176176

@@ -189,10 +189,10 @@ self_update = { version = "0.42", optional = true }
189189

190190
[build-dependencies]
191191
heck = { version = "0.5", optional = true }
192-
pbjson-build = { version = "0.7", optional = true }
192+
pbjson-build = { version = "0.8", optional = true }
193193
prettyplease = { version = "0.2", optional = true }
194194
proc-macro2 = { version = "1.0", optional = true }
195-
prost-build = { version = "0.13", optional = true }
195+
prost-build = { version = "0.14", optional = true }
196196
quote = { version = "1.0", optional = true }
197197
serde = { version = "1.0", features = ["derive"] }
198198
serde_json = { version = "1.0" }

objdiff-gui/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ cfg-if = "1.0"
2929
const_format = "0.2"
3030
cwdemangle = "1.0"
3131
dirs = "6.0"
32-
egui = "0.31"
33-
egui_extras = "0.31"
32+
egui = "0.32"
33+
egui_extras = "0.32"
3434
filetime = "0.2"
3535
float-ord = "0.3"
3636
font-kit = "0.14"
@@ -43,18 +43,19 @@ pollster = "0.4"
4343
regex = "1.11"
4444
rfd = { version = "0.15" } #, default-features = false, features = ['xdg-portal']
4545
rlwinmdec = "1.1"
46-
ron = "0.8"
46+
ron = "0.10"
4747
serde = { version = "1.0", features = ["derive"] }
4848
time = { version = "0.3", features = ["formatting", "local-offset"] }
4949
typed-path = "0.11"
50-
winit = { version = "0.30", features = ["wayland-csd-adwaita"] }
50+
winit = { version = "0.30", features = ["default"] }
5151
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
5252

5353
# Keep version in sync with egui
5454
[dependencies.eframe]
55-
version = "0.31"
55+
version = "0.32"
5656
features = [
5757
"default_fonts",
58+
"glow",
5859
"persistence",
5960
"wayland",
6061
"x11",
@@ -63,10 +64,12 @@ default-features = false
6364

6465
# Keep version in sync with eframe
6566
[dependencies.wgpu]
66-
version = "24.0"
67+
version = "25.0"
6768
features = [
6869
"dx12",
6970
"metal",
71+
"gles",
72+
"vulkan",
7073
"webgpu",
7174
]
7275
optional = true

objdiff-gui/src/app.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl App {
461461
use eframe::egui_wgpu::wgpu::Backend;
462462
let info = wgpu_render_state.adapter.get_info();
463463
app.view_state.graphics_state.active_backend = match info.backend {
464-
Backend::Empty => "Unknown",
464+
Backend::Noop => "None",
465465
Backend::Vulkan => "Vulkan",
466466
Backend::Metal => "Metal",
467467
Backend::Dx12 => "DirectX 12",
@@ -665,7 +665,7 @@ impl eframe::App for App {
665665
let side_panel_available = diff_state.current_view == View::SymbolDiff;
666666

667667
egui::TopBottomPanel::top("top_panel").show(ctx, |ui| {
668-
egui::menu::bar(ui, |ui| {
668+
egui::MenuBar::new().ui(ui, |ui| {
669669
if ui
670670
.add_enabled(
671671
side_panel_available,
@@ -681,11 +681,11 @@ impl eframe::App for App {
681681
#[cfg(debug_assertions)]
682682
if ui.button("Debug…").clicked() {
683683
*show_debug = !*show_debug;
684-
ui.close_menu();
684+
ui.close();
685685
}
686686
if ui.button("Project…").clicked() {
687687
*show_project_config = !*show_project_config;
688-
ui.close_menu();
688+
ui.close();
689689
}
690690
let recent_projects = if let Ok(guard) = state.read() {
691691
guard.config.recent_projects.clone()
@@ -706,18 +706,18 @@ impl eframe::App for App {
706706
.write()
707707
.unwrap()
708708
.set_project_dir(Utf8PlatformPathBuf::from(path));
709-
ui.close_menu();
709+
ui.close();
710710
}
711711
}
712712
});
713713
}
714714
if ui.button("Appearance…").clicked() {
715715
*show_appearance_config = !*show_appearance_config;
716-
ui.close_menu();
716+
ui.close();
717717
}
718718
if ui.button("Graphics…").clicked() {
719719
*show_graphics = !*show_graphics;
720-
ui.close_menu();
720+
ui.close();
721721
}
722722
if ui.button("Quit").clicked() {
723723
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
@@ -726,17 +726,17 @@ impl eframe::App for App {
726726
ui.menu_button("Tools", |ui| {
727727
if ui.button("Demangle…").clicked() {
728728
*show_demangle = !*show_demangle;
729-
ui.close_menu();
729+
ui.close();
730730
}
731731
if ui.button("Rlwinm Decoder…").clicked() {
732732
*show_rlwinm_decode = !*show_rlwinm_decode;
733-
ui.close_menu();
733+
ui.close();
734734
}
735735
});
736736
ui.menu_button("Diff Options", |ui| {
737737
if ui.button("Arch Settings…").clicked() {
738738
*show_arch_config = !*show_arch_config;
739-
ui.close_menu();
739+
ui.close();
740740
}
741741
let mut state = state.write().unwrap();
742742
let response = ui

objdiff-gui/src/views/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std::{mem::take, path::MAIN_SEPARATOR};
55
#[cfg(all(windows, feature = "wsl"))]
66
use anyhow::{Context, Result};
77
use egui::{
8-
CollapsingHeader, FontFamily, FontId, RichText, SelectableLabel, TextFormat, Widget,
9-
output::OpenUrl, text::LayoutJob,
8+
CollapsingHeader, FontFamily, FontId, RichText, TextFormat, Widget, output::OpenUrl,
9+
text::LayoutJob,
1010
};
1111
use globset::Glob;
1212
use objdiff_core::{
@@ -278,7 +278,7 @@ pub fn config_ui(
278278
{
279279
filters_text = filters_text.color(appearance.replace_color);
280280
}
281-
egui::menu::menu_button(ui, filters_text, |ui| {
281+
egui::containers::menu::MenuButton::new(filters_text).ui(ui, |ui| {
282282
ui.checkbox(&mut config_state.filter_diffable, "Diffable")
283283
.on_hover_text_at_pointer("Only show objects with a source file");
284284
ui.checkbox(&mut config_state.filter_incomplete, "Incomplete")
@@ -355,7 +355,7 @@ fn display_unit(
355355
} else {
356356
appearance.text_color
357357
};
358-
let response = SelectableLabel::new(
358+
let response = egui::Button::selectable(
359359
selected,
360360
RichText::new(name)
361361
.font(FontId {
@@ -384,7 +384,7 @@ fn object_context_ui(ui: &mut egui::Ui, object: &ObjectConfig) {
384384
if let Err(e) = open::that_detached(source_path.as_str()) {
385385
log::error!("Failed to open source file: {e}");
386386
}
387-
ui.close_menu();
387+
ui.close();
388388
}
389389
}
390390
}

objdiff-gui/src/views/diff.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ pub fn context_menu_items_ui(
873873
}
874874
if ui.button(job).clicked() {
875875
ui.ctx().copy_text(value);
876-
ui.close_menu();
876+
ui.close();
877877
}
878878
}
879879
ContextItem::Navigate { label, symbol_index, kind } => {
@@ -883,7 +883,7 @@ pub fn context_menu_items_ui(
883883
symbol_index,
884884
column,
885885
)));
886-
ui.close_menu();
886+
ui.close();
887887
}
888888
}
889889
ContextItem::Separator => {

objdiff-gui/src/views/graphics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn load_graphics_config(path: &Path) -> Result<Option<GraphicsConfig>> {
5454

5555
pub fn save_graphics_config(path: &Path, config: &GraphicsConfig) -> Result<()> {
5656
let file = BufWriter::new(File::create(path)?);
57-
ron::ser::to_writer(file, config)?;
57+
ron::Options::default().to_io_writer(file, config)?;
5858
Ok(())
5959
}
6060

objdiff-gui/src/views/symbol_diff.rs

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

33
use egui::{
4-
CollapsingHeader, Color32, Id, OpenUrl, ScrollArea, SelectableLabel, Ui, Widget,
5-
style::ScrollAnimation, text::LayoutJob,
4+
CollapsingHeader, Color32, Id, OpenUrl, ScrollArea, Ui, Widget, style::ScrollAnimation,
5+
text::LayoutJob,
66
};
77
use objdiff_core::{
88
diff::{
@@ -508,7 +508,7 @@ pub fn symbol_context_menu_ui(
508508
} else {
509509
ret = Some(DiffViewAction::SelectingLeft(symbol_ref));
510510
}
511-
ui.close_menu();
511+
ui.close();
512512
}
513513
}
514514
});
@@ -586,7 +586,7 @@ fn symbol_ui(
586586
write_text(") ", appearance.text_color, &mut job, appearance.code_font.clone());
587587
}
588588
write_text(name, appearance.highlight_color, &mut job, appearance.code_font.clone());
589-
let response = SelectableLabel::new(selected, job)
589+
let response = egui::Button::selectable(selected, job)
590590
.ui(ui)
591591
.on_hover_ui_at_pointer(|ui| symbol_hover_ui(ui, ctx, symbol_idx, appearance));
592592
response.context_menu(|ui| {

objdiff-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ features = ["arm", "arm64", "mips", "ppc", "superh", "x86", "dwarf"]
3434
talc = { version = "4.4", default-features = false, features = ["lock_api"] }
3535

3636
[target.'cfg(target_os = "wasi")'.dependencies]
37-
wit-bindgen = { version = "0.42", default-features = false, features = ["macros"] }
37+
wit-bindgen = { version = "0.43", default-features = false, features = ["macros"] }
3838

3939
[build-dependencies]
4040
wit-deps = "0.5"

0 commit comments

Comments
 (0)