Merge pull request 'Update code to Rust 1.84.0' (#14) from topic/jb/update-rust into main

Reviewed-on: #14
Reviewed-by: cody <william@werl.me>
This commit is contained in:
cody 2025-01-20 22:46:37 +00:00
commit 6fc9b80477
8 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
echo "<<< Install Rust prerequisites >>>" echo "<<< Install Rust prerequisites >>>"
apt install -y curl apt install -y curl
RUST_VERSION=1.78.0 RUST_VERSION=1.84.0
echo "<<< Install Rust $RUST_VERSION >>>" echo "<<< Install Rust $RUST_VERSION >>>"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$RUST_VERSION -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$RUST_VERSION -y
. "$HOME/.cargo/env" . "$HOME/.cargo/env"

View File

@ -20,7 +20,7 @@ pub struct Reader<'a> {
impl<'a> Reader<'a> { impl<'a> Reader<'a> {
const CD_PREGAP_SECTORS:usize = Time::cd_pregap().as_sectors(); const CD_PREGAP_SECTORS:usize = Time::cd_pregap().as_sectors();
pub fn new(file: std::fs::File, data_type_guide: &'a Vec<DataTypeEnd>, unk_sector_behav: UnknownSectorBehavior) -> Result<Reader, Error> { pub fn new(file: std::fs::File, data_type_guide: &Vec<DataTypeEnd>, unk_sector_behav: UnknownSectorBehavior) -> Result<Reader, Error> {
Ok(Reader{ Ok(Reader{
file, data_type_guide, unk_sector_behav, lba: Self::CD_PREGAP_SECTORS, active: true file, data_type_guide, unk_sector_behav, lba: Self::CD_PREGAP_SECTORS, active: true
}) })

View File

@ -7,5 +7,5 @@ edition = "2021"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}
tool_helper = {path = "../tool_helper"} tool_helper = {path = "../tool_helper"}

View File

@ -7,6 +7,6 @@ edition = "2021"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}
serde_json = "1.0.134" serde_json = "1.0.137"
tool_helper = {path = "../tool_helper"} tool_helper = {path = "../tool_helper"}

View File

@ -8,7 +8,7 @@ panic = "abort"
[dependencies] [dependencies]
cdtypes = {path = "../cdtypes"} cdtypes = {path = "../cdtypes"}
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}
colored = "2.2.0" colored = "2.2.0"
hound = "3.5.1" hound = "3.5.1"
no-comment = "0.0.3" no-comment = "0.0.3"

View File

@ -26,9 +26,9 @@ symphonia-pcm = ["symphonia", "symphonia/pcm"]
symphonia-vorbis = ["symphonia", "symphonia/vorbis"] symphonia-vorbis = ["symphonia", "symphonia/vorbis"]
[dependencies] [dependencies]
bitflags = "2.6.0" bitflags = "2.8.0"
cdtypes = {path = "../cdtypes"} cdtypes = {path = "../cdtypes"}
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}
image = "0.24.9" image = "0.24.9"
hound = "3.5.1" hound = "3.5.1"
paste = "1.0.15" paste = "1.0.15"

View File

@ -7,7 +7,7 @@ edition = "2021"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}
crossterm = "0.27.0" crossterm = "0.27.0"
ratatui = "0.25.0" ratatui = "0.25.0"
readmap = {version = "*", path = "readmap"} readmap = {version = "*", path = "readmap"}

View File

@ -7,4 +7,4 @@ edition = "2021"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
clap = {version = "4.5.23", features = ["derive"]} clap = {version = "4.5.27", features = ["derive"]}