Skip to content

Commit 258e141

Browse files
committed
Upgrade all dependencies
1 parent dbdda55 commit 258e141

File tree

8 files changed

+405
-444
lines changed

8 files changed

+405
-444
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ strip = "debuginfo"
1313
codegen-units = 1
1414

1515
[workspace.package]
16-
version = "2.0.1"
16+
version = "2.1.0"
1717
authors = ["Luke Street <luke@street.dev>"]
1818
edition = "2021"
1919
license = "MIT OR Apache-2.0"

objdiff-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ gimli = { version = "0.31", default-features = false, features = ["read-all"], o
6060

6161
# ppc
6262
cwdemangle = { version = "1.0", optional = true }
63-
cwextab = { version = "0.3.1", optional = true }
63+
cwextab = { version = "0.3", optional = true }
6464
ppc750cl = { version = "0.3", optional = true }
6565

6666
# mips

objdiff-gui/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const_format = "0.2"
3131
cwdemangle = "1.0"
3232
cwextab = "0.3.1"
3333
dirs = "5.0"
34-
egui = "0.28"
35-
egui_extras = "0.28"
34+
egui = "0.29"
35+
egui_extras = "0.29"
3636
filetime = "0.2"
3737
float-ord = "0.3"
3838
font-kit = "0.14"
@@ -43,7 +43,7 @@ objdiff-core = { path = "../objdiff-core", features = ["all"] }
4343
png = "0.17"
4444
pollster = "0.3"
4545
regex = "1.10"
46-
rfd = { version = "0.14" } #, default-features = false, features = ['xdg-portal']
46+
rfd = { version = "0.15" } #, default-features = false, features = ['xdg-portal']
4747
rlwinmdec = "1.0"
4848
ron = "0.8"
4949
serde = { version = "1.0", features = ["derive"] }
@@ -55,7 +55,7 @@ time = { version = "0.3", features = ["formatting", "local-offset"] }
5555

5656
# Keep version in sync with egui
5757
[dependencies.eframe]
58-
version = "0.28"
58+
version = "0.29"
5959
features = [
6060
"default_fonts",
6161
"persistence",
@@ -66,7 +66,7 @@ default-features = false
6666

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

objdiff-gui/src/main.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use std::{
1818
use anyhow::{ensure, Result};
1919
use cfg_if::cfg_if;
2020
use time::UtcOffset;
21+
use tracing_subscriber::EnvFilter;
2122

2223
use crate::views::graphics::{load_graphics_config, GraphicsBackend, GraphicsConfig};
2324

@@ -39,7 +40,16 @@ const APP_NAME: &str = "objdiff";
3940
#[cfg(not(target_arch = "wasm32"))]
4041
fn main() -> ExitCode {
4142
// Log to stdout (if you run with `RUST_LOG=debug`).
42-
tracing_subscriber::fmt::init();
43+
tracing_subscriber::fmt()
44+
.with_env_filter(
45+
EnvFilter::builder()
46+
// Default to info level
47+
.with_default_directive(tracing_subscriber::filter::LevelFilter::INFO.into())
48+
.from_env_lossy()
49+
// This module is noisy at info level
50+
.add_directive("wgpu_core::device::resource=warn".parse().unwrap()),
51+
)
52+
.init();
4353

4454
// Because localtime_r is unsound in multithreaded apps,
4555
// we must call this before initializing eframe.
@@ -48,8 +58,7 @@ fn main() -> ExitCode {
4858

4959
let app_path = std::env::current_exe().ok();
5060
let exec_path: Rc<Mutex<Option<PathBuf>>> = Rc::new(Mutex::new(None));
51-
let mut native_options =
52-
eframe::NativeOptions { follow_system_theme: false, ..Default::default() };
61+
let mut native_options = eframe::NativeOptions::default();
5362
match load_icon() {
5463
Ok(data) => {
5564
native_options.viewport.icon = Some(Arc::new(data));

objdiff-gui/src/views/appearance.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct Appearance {
1111
pub ui_font: FontId,
1212
pub code_font: FontId,
1313
pub diff_colors: Vec<Color32>,
14-
pub theme: eframe::Theme,
14+
pub theme: egui::Theme,
1515

1616
// Applied by theme
1717
#[serde(skip)]
@@ -56,7 +56,7 @@ impl Default for Appearance {
5656
ui_font: DEFAULT_UI_FONT,
5757
code_font: DEFAULT_CODE_FONT,
5858
diff_colors: DEFAULT_COLOR_ROTATION.to_vec(),
59-
theme: eframe::Theme::Dark,
59+
theme: egui::Theme::Dark,
6060
text_color: Color32::GRAY,
6161
emphasized_text_color: Color32::LIGHT_GRAY,
6262
deemphasized_text_color: Color32::DARK_GRAY,
@@ -98,7 +98,7 @@ impl Appearance {
9898
});
9999
style.text_styles.insert(TextStyle::Monospace, self.code_font.clone());
100100
match self.theme {
101-
eframe::Theme::Dark => {
101+
egui::Theme::Dark => {
102102
style.visuals = egui::Visuals::dark();
103103
self.text_color = Color32::GRAY;
104104
self.emphasized_text_color = Color32::LIGHT_GRAY;
@@ -108,7 +108,7 @@ impl Appearance {
108108
self.insert_color = Color32::GREEN;
109109
self.delete_color = Color32::from_rgb(200, 40, 41);
110110
}
111-
eframe::Theme::Light => {
111+
egui::Theme::Light => {
112112
style.visuals = egui::Visuals::light();
113113
self.text_color = Color32::GRAY;
114114
self.emphasized_text_color = Color32::DARK_GRAY;
@@ -274,8 +274,8 @@ pub fn appearance_window(ctx: &egui::Context, show: &mut bool, appearance: &mut
274274
egui::ComboBox::from_label("Theme")
275275
.selected_text(format!("{:?}", appearance.theme))
276276
.show_ui(ui, |ui| {
277-
ui.selectable_value(&mut appearance.theme, eframe::Theme::Dark, "Dark");
278-
ui.selectable_value(&mut appearance.theme, eframe::Theme::Light, "Light");
277+
ui.selectable_value(&mut appearance.theme, egui::Theme::Dark, "Dark");
278+
ui.selectable_value(&mut appearance.theme, egui::Theme::Light, "Light");
279279
});
280280
ui.separator();
281281
appearance.next_ui_font =

objdiff-gui/src/views/function_diff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ fn asm_row_ui(
272272
response_cb: impl Fn(Response) -> Response,
273273
) {
274274
ui.spacing_mut().item_spacing.x = 0.0;
275+
ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Extend);
275276
if ins_diff.kind != ObjInsDiffKind::None {
276277
ui.painter().rect_filled(ui.available_rect_before_wrap(), 0.0, ui.visuals().faint_bg_color);
277278
}

objdiff-gui/src/views/symbol_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ fn symbol_list_ui(
381381
);
382382
}
383383
CollapsingHeader::new(header)
384-
.id_source(Id::new(section.name.clone()).with(section.orig_index))
384+
.id_salt(Id::new(section.name.clone()).with(section.orig_index))
385385
.default_open(true)
386386
.show(ui, |ui| {
387387
if section.kind == ObjSectionKind::Code && state.reverse_fn_order {

0 commit comments

Comments
 (0)