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.
This commit is contained in:
can1357
2026-08-07 22:37:02 +02:00
parent 34af136c6a
commit bc5eee4e24
4 changed files with 11 additions and 0 deletions
Generated
+4
View File
@@ -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"
+4
View File
@@ -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 = [
+2
View File
@@ -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
@@ -129,6 +129,7 @@ interface ModelSnapshot {
supportsLongPromptCacheRetention: boolean;
promptCacheMinimumTokens: number;
promptCacheMaximumCheckpoints: number;
streamIdleTimeoutMs?: number;
};
}