From bc5eee4e243c918b0e1ed8e87422e9816bf217f2 Mon Sep 17 00:00:00 2001 From: can1357 Date: Fri, 7 Aug 2026 22:37:02 +0200 Subject: [PATCH] fix(build): activated zune-jpeg log feature and widened test compat type - zune-jpeg 0.5.15 (image 0.25's JPEG decoder) cannot compile with its non-default log feature off: zune-core's no-log warn! stub is not expression-safe. A feature-activation-only workspace dep on zune-jpeg { features = ["log"] } fixes the cold build; log stays 0.4.33. - model-registry-default-config's local ModelSnapshot type gains the optional streamIdleTimeoutMs the Bedrock watchdog compat now emits. --- Cargo.lock | 4 ++++ Cargo.toml | 4 ++++ crates/pi-natives/Cargo.toml | 2 ++ .../coding-agent/test/model-registry-default-config.test.ts | 1 + 4 files changed, 11 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 4759a00f4..d9b03fcf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5047,6 +5047,7 @@ dependencies = [ "xcap", "xkeysym", "xxhash-rust", + "zune-jpeg", ] [[package]] @@ -9744,6 +9745,9 @@ name = "zune-core" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9" +dependencies = [ + "log", +] [[package]] name = "zune-jpeg" diff --git a/Cargo.toml b/Cargo.toml index 7aca46a41..8e4084bce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -317,6 +317,10 @@ image = { version = "0.25", default-features = false, features = [ "gif", "webp", ] } +# Not used directly: activates zune-jpeg's non-default `log` feature so image's +# JPEG decoder compiles — zune-jpeg 0.5.15's no-log stub macros are not +# expression-safe and the crate fails to build without it. +zune-jpeg = { version = "0.5", default-features = false, features = ["log"] } png = "0.18" inferno = { version = "0.12", default-features = false } syntect = { version = "5.3", default-features = false, features = [ diff --git a/crates/pi-natives/Cargo.toml b/crates/pi-natives/Cargo.toml index f51aab587..964511659 100644 --- a/crates/pi-natives/Cargo.toml +++ b/crates/pi-natives/Cargo.toml @@ -38,6 +38,8 @@ html-to-markdown-rs.workspace = true icy_sixel.workspace = true ignore.workspace = true image = { workspace = true, features = ["bmp"] } +# Feature activation only (see workspace manifest): zune-jpeg needs `log` to compile. +zune-jpeg.workspace = true inferno.workspace = true napi.workspace = true napi-derive.workspace = true diff --git a/packages/coding-agent/test/model-registry-default-config.test.ts b/packages/coding-agent/test/model-registry-default-config.test.ts index 8564808cc..61f686fd0 100644 --- a/packages/coding-agent/test/model-registry-default-config.test.ts +++ b/packages/coding-agent/test/model-registry-default-config.test.ts @@ -129,6 +129,7 @@ interface ModelSnapshot { supportsLongPromptCacheRetention: boolean; promptCacheMinimumTokens: number; promptCacheMaximumCheckpoints: number; + streamIdleTimeoutMs?: number; }; }