From 0922b9ac732367ec8c4601f2696ad59faaf392cc Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 6 Apr 2026 14:51:52 +0800 Subject: [PATCH] .. --- Cargo.lock | 7 ------- yazi-parser/Cargo.toml | 2 -- yazi-plugin/preset/plugins/extract.lua | 6 ++++-- yazi-proxy/Cargo.toml | 1 - yazi-runner/Cargo.toml | 3 --- yazi-scheduler/Cargo.toml | 1 - yazi-scheduler/src/hook/in.rs | 2 +- 7 files changed, 5 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 202af78d..7fcb49df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6112,8 +6112,6 @@ dependencies = [ "yazi-dds", "yazi-fs", "yazi-macro", - "yazi-plugin", - "yazi-runner", "yazi-scheduler", "yazi-shared", "yazi-vfs", @@ -6172,7 +6170,6 @@ dependencies = [ "yazi-config", "yazi-core", "yazi-macro", - "yazi-runner", "yazi-scheduler", "yazi-shared", "yazi-widgets", @@ -6183,12 +6180,9 @@ name = "yazi-runner" version = "26.2.2" dependencies = [ "anyhow", - "dyn-clone", "hashbrown 0.16.1", "mlua", "parking_lot", - "serde", - "strum 0.28.0", "thiserror 2.0.18", "tokio", "tokio-util", @@ -6218,7 +6212,6 @@ dependencies = [ "serde", "strum 0.28.0", "tokio", - "tokio-util", "tracing", "yazi-binding", "yazi-config", diff --git a/yazi-parser/Cargo.toml b/yazi-parser/Cargo.toml index f41fdf80..ffccd7d3 100644 --- a/yazi-parser/Cargo.toml +++ b/yazi-parser/Cargo.toml @@ -24,8 +24,6 @@ yazi-core = { path = "../yazi-core", version = "26.2.2" } yazi-dds = { path = "../yazi-dds", version = "26.2.2" } yazi-fs = { path = "../yazi-fs", version = "26.2.2" } yazi-macro = { path = "../yazi-macro", version = "26.2.2" } -yazi-plugin = { path = "../yazi-plugin", version = "26.2.2" } -yazi-runner = { path = "../yazi-runner", version = "26.2.2" } yazi-scheduler = { path = "../yazi-scheduler", version = "26.2.2" } yazi-shared = { path = "../yazi-shared", version = "26.2.2" } yazi-vfs = { path = "../yazi-vfs", version = "26.2.2" } diff --git a/yazi-plugin/preset/plugins/extract.lua b/yazi-plugin/preset/plugins/extract.lua index 6e3cc675..0b7c2aa7 100644 --- a/yazi-plugin/preset/plugins/extract.lua +++ b/yazi-plugin/preset/plugins/extract.lua @@ -19,10 +19,12 @@ end function M:init(job) local from = job.args[1] and Url(job.args[1]) - local to = job.args[2] ~= "" and Url(job.args[2]) or from.parent if not from then fail("No URL provided") - elseif not to then + end + + local to = job.args[2] ~= "" and Url(job.args[2]) or from.parent + if not to then fail("Failed to determine target directory for '%s'", from) end diff --git a/yazi-proxy/Cargo.toml b/yazi-proxy/Cargo.toml index 7d1fb1e8..35aba306 100644 --- a/yazi-proxy/Cargo.toml +++ b/yazi-proxy/Cargo.toml @@ -16,7 +16,6 @@ workspace = true yazi-config = { path = "../yazi-config", version = "26.2.2" } yazi-core = { path = "../yazi-core", version = "26.2.2" } yazi-macro = { path = "../yazi-macro", version = "26.2.2" } -yazi-runner = { path = "../yazi-runner", version = "26.2.2" } yazi-scheduler = { path = "../yazi-scheduler", version = "26.2.2" } yazi-shared = { path = "../yazi-shared", version = "26.2.2" } yazi-widgets = { path = "../yazi-widgets", version = "26.2.2" } diff --git a/yazi-runner/Cargo.toml b/yazi-runner/Cargo.toml index eafdb096..608b287e 100644 --- a/yazi-runner/Cargo.toml +++ b/yazi-runner/Cargo.toml @@ -23,12 +23,9 @@ yazi-shared = { path = "../yazi-shared", version = "26.2.2" } # External dependencies anyhow = { workspace = true } -dyn-clone = { workspace = true } hashbrown = { workspace = true } mlua = { workspace = true } parking_lot = { workspace = true } -serde = { workspace = true } -strum = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } tokio-util = { workspace = true } diff --git a/yazi-scheduler/Cargo.toml b/yazi-scheduler/Cargo.toml index 70806031..7075ca4d 100644 --- a/yazi-scheduler/Cargo.toml +++ b/yazi-scheduler/Cargo.toml @@ -35,7 +35,6 @@ parking_lot = { workspace = true } serde = { workspace = true } strum = { workspace = true } tokio = { workspace = true } -tokio-util = { workspace = true } tracing = { workspace = true } [target."cfg(unix)".dependencies] diff --git a/yazi-scheduler/src/hook/in.rs b/yazi-scheduler/src/hook/in.rs index d9e56c9d..799a3cba 100644 --- a/yazi-scheduler/src/hook/in.rs +++ b/yazi-scheduler/src/hook/in.rs @@ -364,7 +364,7 @@ impl TaskIn for HookInPreload { self } - fn title(&self) -> Cow<'_, str> { todo!() } + fn title(&self) -> Cow<'_, str> { format!("Hook: run {}-th preloader", self.idx).into() } } impl HookInPreload {