From 71b484c6795f476253775010bd84770562558024 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 5 Sep 2024 21:57:50 +0700 Subject: [PATCH] Update `image` dep, fix deprecation (#682) --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- examples/scenes/src/images.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d2c1bc4c6..11b703411 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -284,10 +284,10 @@ dependencies = [ ] [[package]] -name = "byteorder" -version = "1.5.0" +name = "byteorder-lite" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" @@ -1003,12 +1003,12 @@ checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" [[package]] name = "image" -version = "0.25.1" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd54d660e773627692c524beaad361aca785a4f9f5730ce91f42aabe5bce3d11" +checksum = "99314c8a2152b8ddb211f924cdae532d8c5e4c8bb54728e12fff1b0cd5963a10" dependencies = [ "bytemuck", - "byteorder", + "byteorder-lite", "num-traits", "png", "zune-core", diff --git a/Cargo.toml b/Cargo.toml index a881b64bc..3626a800b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ thiserror = "1.0.61" # NOTE: Make sure to keep this in sync with the version badge in README.md and vello/README.md wgpu = { version = "22.0.0" } log = "0.4.21" -image = { version = "0.25.1", default-features = false } +image = { version = "0.25.2", default-features = false } # Used for examples clap = "4.5.4" diff --git a/examples/scenes/src/images.rs b/examples/scenes/src/images.rs index 83f43c46e..95b6a263a 100644 --- a/examples/scenes/src/images.rs +++ b/examples/scenes/src/images.rs @@ -43,7 +43,7 @@ impl ImageCache { } fn decode_image(data: &[u8]) -> anyhow::Result { - let image = image::io::Reader::new(std::io::Cursor::new(data)) + let image = image::ImageReader::new(std::io::Cursor::new(data)) .with_guessed_format()? .decode()?; let width = image.width();