From ef5dac0a478bcd05573f30db2d102d3899d92341 Mon Sep 17 00:00:00 2001 From: Kanyin Cai Date: Sat, 21 Mar 2026 12:52:50 +0100 Subject: [PATCH] chore(01-01): add fast_image_resize 6.0.0 dependency to yazi-adapter --- Cargo.lock | 15 +++++++++++++++ yazi-adapter/Cargo.toml | 1 + 2 files changed, 16 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 67855409..789ab3f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1436,6 +1436,20 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd2e7510819d6fbf51a5545c8f922716ecfb14df168a3242f7d33e0239efe6a1" +[[package]] +name = "fast_image_resize" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12dd43e5011e8d8411a3215a0d57a2ec5c68282fb90eb5d7221fab0113442174" +dependencies = [ + "bytemuck", + "cfg-if", + "document-features", + "image", + "num-traits", + "thiserror 2.0.18", +] + [[package]] name = "fax" version = "0.2.6" @@ -5693,6 +5707,7 @@ dependencies = [ "anyhow", "base64", "crossterm 0.29.0", + "fast_image_resize", "image", "moxcms", "palette", diff --git a/yazi-adapter/Cargo.toml b/yazi-adapter/Cargo.toml index 400c75e5..3b942de0 100644 --- a/yazi-adapter/Cargo.toml +++ b/yazi-adapter/Cargo.toml @@ -25,6 +25,7 @@ ansi-to-tui = { workspace = true } anyhow = { workspace = true } base64 = { workspace = true } crossterm = { workspace = true } +fast_image_resize = { version = "6.0.0", features = ["image"] } image = { version = "0.25.10", default-features = false, features = [ "avif", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp" ] } moxcms = "0.8.1" palette = { version = "0.7.6", default-features = false }