Skip to content

Commit 827f4a4

Browse files
committed
Upgrade all dependencies (incl. egui)
1 parent b2dcecc commit 827f4a4

File tree

12 files changed

+783
-760
lines changed

12 files changed

+783
-760
lines changed

Cargo.lock

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

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ignore = [
7575
#{ crate = "[email protected]", reason = "you can specify why you are ignoring the yanked crate" },
7676
{ id = "RUSTSEC-2024-0436", reason = "Unmaintained paste crate is an indirect dependency" },
7777
{ id = "RUSTSEC-2025-0052", reason = "Unmaintained async-std crate is an indirect dependency" },
78+
{ id = "RUSTSEC-2025-0119", reason = "Unmaintained number_prefix crate is an indirect dependency" },
7879
]
7980
# If this is true, then cargo deny will use the git executable to fetch advisory database.
8081
# If this is false, then it uses a built-in git library.

objdiff-cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ publish = false
1616
anyhow = "1.0"
1717
argp = "0.4"
1818
crossterm = "0.29"
19-
enable-ansi-support = "0.2"
19+
enable-ansi-support = "0.3"
2020
memmap2 = "0.9"
2121
objdiff-core = { path = "../objdiff-core", features = ["all"] }
2222
prost = "0.14"
2323
ratatui = "0.29"
24-
rayon = "1.10"
24+
rayon = "1.11"
2525
serde = { version = "1.0", features = ["derive"] }
2626
serde_json = "1.0"
2727
supports-color = "3.0"
2828
time = { version = "0.3", features = ["formatting", "local-offset"] }
2929
tracing = "0.1"
3030
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
31-
typed-path = "0.11"
31+
typed-path = "0.12"
3232

3333
[target.'cfg(target_env = "musl")'.dependencies]
3434
mimalloc = "0.1"

objdiff-cli/src/views/function_diff.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ impl UiView for FunctionDiffUi {
378378
}
379379
// Reload
380380
KeyCode::Char('r') => {
381-
result.redraw = true;
382381
return EventControlFlow::Reload;
383382
}
384383
// Scroll right
@@ -400,7 +399,6 @@ impl UiView for FunctionDiffUi {
400399
FunctionRelocDiffs::DataValue => FunctionRelocDiffs::All,
401400
FunctionRelocDiffs::All => FunctionRelocDiffs::None,
402401
};
403-
result.redraw = true;
404402
return EventControlFlow::Reload;
405403
}
406404
// Toggle three-way diff

objdiff-core/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ num-traits = { version = "0.2", default-features = false, optional = true }
135135
object = { version = "0.37", default-features = false, features = ["read_core", "elf", "coff"] }
136136
pbjson = { version = "0.8", default-features = false, optional = true }
137137
prost = { version = "0.14", default-features = false, features = ["derive"], optional = true }
138-
regex = { version = "1.11", default-features = false, features = [], optional = true }
138+
regex = { version = "1.12", default-features = false, features = [], optional = true }
139139
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
140140
similar = { git = "https://github.com/encounter/similar.git", branch = "no_std", default-features = false, features = ["hashbrown"], optional = true }
141-
typed-path = { version = "0.11", default-features = false, optional = true }
141+
typed-path = { version = "0.12", default-features = false, optional = true }
142142

143143
# config
144144
globset = { version = "0.4", default-features = false, optional = true }
@@ -155,29 +155,29 @@ powerpc = { version = "0.4", optional = true }
155155
rlwinmdec = { version = "1.1", optional = true }
156156

157157
# mips
158-
rabbitizer = { version = "2.0.0-alpha.4", default-features = false, features = ["all_extensions"], optional = true }
158+
rabbitizer = { version = "2.0.0-alpha.7", default-features = false, features = ["all_extensions"], optional = true }
159159

160160
# x86
161161
iced-x86 = { version = "1.21", default-features = false, features = ["decoder", "intel", "gas", "masm", "nasm", "exhaustive_enums", "no_std"], optional = true }
162162

163163
# arm
164-
unarm = { version = "2.0", optional = true }
164+
unarm = { version = "2.1", optional = true }
165165
arm-attr = { version = "0.2", optional = true }
166166

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

171171
# build
172-
notify = { version = "8.1.0", optional = true }
173-
notify-debouncer-full = { version = "0.5.0", optional = true }
172+
notify = { version = "8.2.0", optional = true }
173+
notify-debouncer-full = { version = "0.6.0", optional = true }
174174
shell-escape = { version = "0.1", optional = true }
175-
tempfile = { version = "3.20", optional = true }
175+
tempfile = { version = "3.23", optional = true }
176176
time = { version = "0.3", optional = true }
177177
encoding_rs = { version = "0.8.35", optional = true }
178178

179179
# demangler
180-
cpp_demangle = { version = "0.4", optional = true, default-features = false, features = ["alloc"] }
180+
cpp_demangle = { version = "0.5", optional = true, default-features = false, features = ["alloc"] }
181181
cwdemangle = { version = "1.0", optional = true }
182182
gnuv2_demangle = { version = "0.4", optional = true }
183183
msvc-demangler = { version = "0.11", optional = true }

objdiff-core/src/diff/demangler.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ impl Demangler {
3434

3535
fn demangle_itanium(name: &str) -> Option<String> {
3636
let name = name.trim_start_matches('.');
37-
cpp_demangle::Symbol::new(name)
38-
.ok()
39-
.and_then(|s| s.demangle(&cpp_demangle::DemangleOptions::default()).ok())
37+
cpp_demangle::Symbol::new(name).ok().and_then(|s| s.demangle().ok())
4038
}
4139

4240
fn demangle_gnu_legacy(name: &str) -> Option<String> {

objdiff-gui/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,31 @@ cfg-if = "1.0"
3030
const_format = "0.2"
3131
cwdemangle = "1.0"
3232
dirs = "6.0"
33-
egui = "0.32"
34-
egui_extras = "0.32"
35-
egui-notify = "0.20"
33+
egui = "0.33"
34+
egui_extras = "0.33"
35+
egui-notify = "0.21"
3636
filetime = "0.2"
3737
float-ord = "0.3"
3838
font-kit = "0.14"
3939
globset = { version = "0.4", features = ["serde1"] }
4040
log = "0.4"
4141
objdiff-core = { path = "../objdiff-core", features = ["all"] }
4242
open = "5.3"
43-
png = "0.17"
43+
png = "0.18"
4444
pollster = "0.4"
45-
regex = "1.11"
45+
regex = "1.12"
4646
rfd = { version = "0.15" } #, default-features = false, features = ['xdg-portal']
4747
rlwinmdec = "1.1"
48-
ron = "0.10"
48+
ron = "0.12"
4949
serde = { version = "1.0", features = ["derive"] }
5050
time = { version = "0.3", features = ["formatting", "local-offset"] }
51-
typed-path = "0.11"
51+
typed-path = "0.12"
5252
winit = { version = "0.30", features = ["default"] }
5353
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
5454

5555
# Keep version in sync with egui
5656
[dependencies.eframe]
57-
version = "0.32"
57+
version = "0.33"
5858
features = [
5959
"default_fonts",
6060
"glow",
@@ -66,7 +66,7 @@ default-features = false
6666

6767
# Keep version in sync with eframe
6868
[dependencies.wgpu]
69-
version = "25.0"
69+
version = "27.0"
7070
features = [
7171
"dx12",
7272
"metal",

objdiff-gui/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ mod views;
1414
use std::{
1515
ffi::OsStr,
1616
fmt::Display,
17+
io::Cursor,
1718
path::PathBuf,
1819
process::ExitCode,
1920
rc::Rc,
2021
str::FromStr,
2122
sync::{Arc, Mutex},
2223
};
2324

24-
use anyhow::{Result, ensure};
25+
use anyhow::{Context, Result, ensure};
2526
use argp::{FromArgValue, FromArgs};
2627
use cfg_if::cfg_if;
2728
use objdiff_core::config::path::check_path_buf;
@@ -90,9 +91,9 @@ struct TopLevel {
9091
}
9192

9293
fn load_icon() -> Result<egui::IconData> {
93-
let decoder = png::Decoder::new(include_bytes!("../assets/icon_64.png").as_ref());
94+
let decoder = png::Decoder::new(Cursor::new(include_bytes!("../assets/icon_64.png").as_ref()));
9495
let mut reader = decoder.read_info()?;
95-
let mut buf = vec![0; reader.output_buffer_size()];
96+
let mut buf = vec![0; reader.output_buffer_size().context("Buffer too large")?];
9697
let info = reader.next_frame(&mut buf)?;
9798
ensure!(info.bit_depth == png::BitDepth::Eight);
9899
ensure!(info.color_type == png::ColorType::Rgba);

objdiff-gui/src/views/frame_history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl FrameHistory {
104104
));
105105
let cpu_usage = to_screen.inverse().transform_pos(pointer_pos).y;
106106
let text = format!("{:.1} ms", 1e3 * cpu_usage);
107-
shapes.push(ui.fonts(|f| {
107+
shapes.push(ui.fonts_mut(|f| {
108108
Shape::text(
109109
f,
110110
pos2(rect.left(), y),

objdiff-gui/src/views/function_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ fn asm_row_ui(
217217
if ins_diff.kind != InstructionDiffKind::None {
218218
ui.painter().rect_filled(ui.available_rect_before_wrap(), 0.0, ui.visuals().faint_bg_color);
219219
}
220-
let space_width = ui.fonts(|f| f.glyph_width(&appearance.code_font, ' '));
220+
let space_width = ui.fonts_mut(|f| f.glyph_width(&appearance.code_font, ' '));
221221
display_row(obj, symbol_idx, ins_diff, diff_config, |segment| {
222222
if let Some(action) =
223223
diff_text_ui(ui, segment, appearance, ins_view_state, column, space_width, &response_cb)

0 commit comments

Comments
 (0)