chore: update some dependencies

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-04-07 15:19:47 -03:00
parent cf2357f917
commit 926c66746d
6 changed files with 291 additions and 350 deletions

619
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0"
bitfield = "0.13"
clap = "2.33"
clap = { version = "3.1", features = ["cargo"] }
gilrs = "0.8"
winit = "0.26"
egui = "0.15"
@ -17,13 +17,13 @@ wgpu = "0.11"
egui_wgpu_backend = "0.14"
egui_winit_platform = "0.12"
pollster = "0.2"
rodio = "0.14"
rodio = "0.15"
rtrb = "0.2"
directories-next = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["std", "env-filter"] }
thiserror = "1.0"
once_cell= "1.8"
once_cell = "1.10"
[profile.release]
debug = true

View File

@ -169,7 +169,7 @@ pub(super) mod ch4 {
match byte & 0x01 {
0b00 => Self::Short,
0b01 => Self::Long,
_ => unreachable!("{:#04X} is not a valid value for CounterWidth"),
_ => unreachable!("{:#04X} is not a valid value for CounterWidth", byte),
}
}
}

View File

@ -117,7 +117,7 @@ pub fn surface_config(window: &Window, format: TextureFormat) -> SurfaceConfigur
format,
width: size.width as u32,
height: size.height as u32,
present_mode: PresentMode::Mailbox,
present_mode: PresentMode::Immediate,
}
}

View File

@ -2073,7 +2073,7 @@ mod table {
0b101 => L,
0b110 => IndirectHL,
0b111 => A,
_ => unreachable!("{:#04X} is not a valid Register"),
_ => unreachable!("{:#04X} is not a valid Register", code),
}
}

View File

@ -1,6 +1,6 @@
use std::time::Instant;
use clap::{crate_authors, crate_description, crate_name, crate_version, App, Arg};
use clap::{crate_authors, crate_description, crate_name, crate_version, Arg, Command};
use egui_wgpu_backend::RenderPass;
use gb::gui::EmuMode;
use gb::{emu, gui};
@ -14,22 +14,22 @@ use winit::event_loop::EventLoop;
const AUDIO_ENABLED: bool = true;
fn main() {
let app = App::new(crate_name!())
let app = Command::new(crate_name!())
.version(crate_version!())
.author(crate_authors!())
.about(crate_description!());
let m = app
.arg(
Arg::with_name("rom")
Arg::new("rom")
.value_name("ROM_FILE")
.takes_value(true)
.index(1)
.help("Path to the Game ROM"),
)
.arg(
Arg::with_name("boot")
.short("b")
Arg::new("boot")
.short('b')
.long("boot")
.value_name("FILE")
.takes_value(true)